Revision 24818e8f test/ganeti.utils_unittest.py
b/test/ganeti.utils_unittest.py | ||
---|---|---|
541 | 541 |
self._test(files, expected) |
542 | 542 |
|
543 | 543 |
|
544 |
class TestGetUUID(unittest.TestCase):
|
|
545 |
"""Test case for GetUUID"""
|
|
544 |
class TestNewUUID(unittest.TestCase):
|
|
545 |
"""Test case for NewUUID"""
|
|
546 | 546 |
|
547 | 547 |
_re_uuid = re.compile('^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-' |
548 | 548 |
'[a-f0-9]{4}-[a-f0-9]{12}$') |
549 | 549 |
|
550 | 550 |
def runTest(self): |
551 |
self.failUnless(self._re_uuid.match(utils.GetUUID()))
|
|
551 |
self.failUnless(self._re_uuid.match(utils.NewUUID()))
|
|
552 | 552 |
|
553 | 553 |
|
554 | 554 |
if __name__ == '__main__': |
Also available in: Unified diff