Revision 667479d5 test/ganeti.utils_unittest.py
b/test/ganeti.utils_unittest.py | ||
---|---|---|
335 | 335 |
for sep in ('', ' ', ' ', "\t", "\t "): |
336 | 336 |
for suffix, scale in TestParseUnit.SCALES: |
337 | 337 |
for func in (lambda x: x, str.lower, str.upper): |
338 |
self.assertEqual(ParseUnit('1024' + sep + func(suffix)), 1024 * scale) |
|
338 |
self.assertEqual(ParseUnit('1024' + sep + func(suffix)), |
|
339 |
1024 * scale) |
|
339 | 340 |
|
340 | 341 |
def testInvalidInput(self): |
341 | 342 |
for sep in ('-', '_', ',', 'a'): |
Also available in: Unified diff