From d2e7bb04317f62643ab2005b601da2265c502c93 Mon Sep 17 00:00:00 2001 From: Zhongyue Luo Date: Wed, 31 Oct 2012 13:19:10 +0800 Subject: Use uuidutils.is_uuid_like for uuid validation Change-Id: I8fc760062ecaee45d263db663a52971be96f264a --- nova/tests/test_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nova/tests') diff --git a/nova/tests/test_utils.py b/nova/tests/test_utils.py index 1b84b858d..8b883f755 100644 --- a/nova/tests/test_utils.py +++ b/nova/tests/test_utils.py @@ -30,6 +30,7 @@ import nova from nova import exception from nova import flags from nova.openstack.common import timeutils +from nova.openstack.common import uuidutils from nova import test from nova import utils @@ -510,7 +511,7 @@ class GenericUtilsTestCase(test.TestCase): class IsUUIDLikeTestCase(test.TestCase): def assertUUIDLike(self, val, expected): - result = utils.is_uuid_like(val) + result = uuidutils.is_uuid_like(val) self.assertEqual(result, expected) def test_good_uuid(self): -- cgit