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')
Esempio n. 5
0
 def test_commits_deletion(self):
     delete(self.upload)
     assert self.upload in self.committed_objects
Esempio n. 6
0
 def test_deletes_from_db(self):
     delete(self.upload)
     assert self.upload in self.deleted_objects
Esempio n. 7
0
 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')
Esempio n. 8
0
 def test_deletes_from_storage(self):
     assert self.storage.exists(u'games')
     delete(self.upload)
     assert not self.storage.exists(u'games')