diff options
author | Arata Notsu <notsu@virtualtech.jp> | 2012-11-07 00:38:31 +0900 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2012-11-08 05:48:39 +0000 |
commit | cfa84448e026805fa198b06fe06c9ccc2ebafd2c (patch) | |
tree | 3da07ad1ed35d39232c4bdd902278c36ff04078b | |
parent | aad3756a7d627e85f8936c03d690c6abf8882a5e (diff) | |
download | nova-cfa84448e026805fa198b06fe06c9ccc2ebafd2c.tar.gz nova-cfa84448e026805fa198b06fe06c9ccc2ebafd2c.tar.xz nova-cfa84448e026805fa198b06fe06c9ccc2ebafd2c.zip |
Fix verification in test_api_samples.py
Some regexps are corrected.
Change-Id: I77bb6503352083254d8887b6cb513c45bcfae99c
-rw-r--r-- | nova/tests/integrated/test_api_samples.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/tests/integrated/test_api_samples.py b/nova/tests/integrated/test_api_samples.py index 3bcd737bb..81c8e91c0 100644 --- a/nova/tests/integrated/test_api_samples.py +++ b/nova/tests/integrated/test_api_samples.py @@ -178,6 +178,7 @@ class ApiSampleTestBase(integrated_helpers._IntegratedTestBase): result = str(result) expected = expected.replace('int:', '') expected = expected % subs + expected = '^%s$' % expected match = re.match(expected, result) if not match: raise NoMatch(_('Values do not match:\n' @@ -225,7 +226,7 @@ class ApiSampleTestBase(integrated_helpers._IntegratedTestBase): '(Z|(\+|-)\d{2}:\d{2}|\.\d{6})', 'password': '[0-9a-zA-Z]{1,12}', 'ip': '[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}', - 'ip6': '([0-9a-zA-Z]{1,4}:){1,7}:?[0-9a-zA-Z]', + 'ip6': '([0-9a-zA-Z]{1,4}:){1,7}:?[0-9a-zA-Z]{1,4}', 'id': '(?P<id>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}' '-[0-9a-f]{4}-[0-9a-f]{12})', 'uuid': '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}' |