Skip to content

Commit a8ab2a6

Browse files
author
Frederick Ross
committed
Rework test_job.py
Lots of work here. Lots of funny stuff on timing. One really problem: testing touch() is intrinsically slow, since you have to wait for the job's TTL to count down.
1 parent a422b20 commit a8ab2a6

3 files changed

Lines changed: 297 additions & 186 deletions

File tree

‎tests/test_collection.py‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,13 @@ def test_paging(self):
173173
msg='on %s (expected: %s, found: %s)' % \
174174
(coll_name, expected, found))
175175

176+
def test_getitem_with_nonsense(self):
177+
for coll_name in collections:
178+
coll = getattr(self.service, coll_name)
179+
name = testlib.tmpname()
180+
self.assertTrue(name not in coll)
181+
self.assertRaises(KeyError, coll.__getitem__, name)
182+
176183
if __name__ == "__main__":
177184
testlib.main()
178185

0 commit comments

Comments
 (0)