Skip to content

Commit

Permalink
added unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
twobraids authored and lonnen committed Mar 9, 2013
1 parent e9b3155 commit 19de865
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions socorro/unittest/external/filesystem/test_json_dump_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,19 @@ def test_remove(self):
self.assertRaises(OSError, storage.getDump, crash_id)
self.assertRaises(OSError, storage.get_dumps, crash_id)

def test_quickDelete(self):
storage = JDS.JsonDumpStorage(self.testDir,**self.initKwargs[2])
input_crashes = self._create_multidump_data()
for crash_id, raw_crash, dumps_dict in input_crashes:
storage.new_entry(crash_id, raw_crash, dumps_dict)

crash_id = '0bba61c5-dfc3-3333-dead-8afd20081225'
storage.quickDelete(crash_id)

self.assertRaises(OSError, storage.getDump, crash_id)
self.assertRaises(OSError, storage.get_dumps, crash_id)




if __name__ == "__main__":
Expand Down

0 comments on commit 19de865

Please sign in to comment.