Revision b247c6fc test/ganeti.ht_unittest.py
b/test/ganeti.ht_unittest.py | ||
---|---|---|
250 | 250 |
None, [], {}, object()]: |
251 | 251 |
self.assertFalse(ht.TJobId(i)) |
252 | 252 |
|
253 |
def testRelativeJobId(self): |
|
254 |
for i in [-1, -93, -4395]: |
|
255 |
self.assertTrue(ht.TRelativeJobId(i)) |
|
256 |
self.assertFalse(ht.TRelativeJobId(str(i))) |
|
257 |
|
|
258 |
for i in [0, 1, 2, 10, 9289, "", "0", "-1", "-999"]: |
|
259 |
self.assertFalse(ht.TRelativeJobId(i)) |
|
260 |
self.assertFalse(ht.TRelativeJobId(str(i))) |
|
261 |
|
|
253 | 262 |
def testItems(self): |
254 | 263 |
self.assertRaises(AssertionError, ht.TItems, []) |
255 | 264 |
|
Also available in: Unified diff