def test_commits_deletion(self): delete(self.upload) assert self.upload in self.committed_objects
def test_deletes_resized_images_from_storage(self): assert self.storage.exists(u'games_nail.jpg') delete(self.upload) assert not self.storage.exists(u'games_nail.jpg')
def test_deletes_from_db(self): delete(self.upload) assert self.upload in self.deleted_objects
def test_deletes_from_storage(self): assert self.storage.exists(u'games') delete(self.upload) assert not self.storage.exists(u'games')