def test_storage_path(self): image = ImageModelFactory.create() thumbnail = Thumbnail(image.file.path, {'size': ['50', '50']}) assert thumbnail.get_storage_path() == os.path.join( thumbnail_storage.location, thumbnail.get_name())