Beispiel #1
0
 def test_delete_not_your_folder(self):
     f1 = FolderRepo.create_folder(self.user.id, 'folder1')
     stat = FolderRepo.delete_folder(self.user_two.id, f1['id'])
     self.assertFalse(stat)
Beispiel #2
0
 def test_delete_nonexistent_folder(self):
     stat = FolderRepo.delete_folder(self.user.id, 322)
     self.assertFalse(stat)
Beispiel #3
0
 def test_delete_folder(self):
     f1 = FolderRepo.create_folder(self.user.id, 'folder1')
     stat = FolderRepo.delete_folder(self.user.id, f1['id'])
     self.assertTrue(stat)