From 31a5a6dd13beac71e6520bb9fd52bc7cc42e5eee Mon Sep 17 00:00:00 2001 From: Sergey Kraynev Date: Thu, 21 Jul 2016 12:50:21 +0300 Subject: [PATCH] Make parsing for namespaces more strictly Change-Id: I9c80badd88be069e34743e1ef132e687122c9739 --- unittests/test_namespaces.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unittests/test_namespaces.py b/unittests/test_namespaces.py index 2537507..2f03f49 100644 --- a/unittests/test_namespaces.py +++ b/unittests/test_namespaces.py @@ -52,7 +52,7 @@ class TestNamespaces(testtools.TestCase): with open(cls_name) as f: data = f.read() - regexp_str = '%s:[A-Z]+' % namespace + regexp_str = '[^a-zA-Z]%s:[a-zA-Z]+' % namespace regexp = re.compile(regexp_str) if len(regexp.findall(data)) == 0: msg = ('Namespace "%s" is not used in the "%s" and should '