diff options
| author | Zhongyue Luo <zhongyue.nah@intel.com> | 2012-10-31 13:19:10 +0800 |
|---|---|---|
| committer | Zhongyue Luo <zhongyue.nah@intel.com> | 2012-11-05 15:08:45 +0800 |
| commit | d2e7bb04317f62643ab2005b601da2265c502c93 (patch) | |
| tree | c1d42bb8f9d83d0c64042feeaa9f193c71abca53 /nova/tests | |
| parent | bb15f2b5b8f9127c1da6b26ac18b306378b3531a (diff) | |
Use uuidutils.is_uuid_like for uuid validation
Change-Id: I8fc760062ecaee45d263db663a52971be96f264a
Diffstat (limited to 'nova/tests')
| -rw-r--r-- | nova/tests/test_utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
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): |
