Code Duplication    Length = 13-14 lines in 2 locations

tests/test_commands.py 2 locations

@@ 51-64 (lines=14) @@
48
        after = os.path.getmtime(file_path)
49
        assert before == after
50
51
    def test_replace(self, image_upload_file):
52
        obj = ThumbnailModel.objects.create(image=image_upload_file)
53
        file_path = obj.image.thumbnail.path
54
        assert os.path.exists(file_path)
55
        before = os.path.getmtime(file_path)
56
        time.sleep(1)
57
        call_command(
58
            'rendervariations',
59
            'tests.ThumbnailModel.image',
60
            replace=True
61
        )
62
        assert os.path.exists(file_path)
63
        after = os.path.getmtime(file_path)
64
        assert before != after
65
66
    def test_none_default_storage(self, image_upload_file):
67
        obj = MyStorageModel.customer_manager.create(
@@ 37-49 (lines=13) @@
34
        )
35
        assert any([os.path.exists(f) for f in file_names])
36
37
    def test_no_replace(self, image_upload_file):
38
        obj = ThumbnailModel.objects.create(image=image_upload_file)
39
        file_path = obj.image.thumbnail.path
40
        assert os.path.exists(file_path)
41
        before = os.path.getmtime(file_path)
42
        time.sleep(1)
43
        call_command(
44
            'rendervariations',
45
            'tests.ThumbnailModel.image',
46
        )
47
        assert os.path.exists(file_path)
48
        after = os.path.getmtime(file_path)
49
        assert before == after
50
51
    def test_replace(self, image_upload_file):
52
        obj = ThumbnailModel.objects.create(image=image_upload_file)