Make parsing for namespaces more strictly

Change-Id: I9c80badd88be069e34743e1ef132e687122c9739
This commit is contained in:
Sergey Kraynev 2016-07-21 12:50:21 +03:00
parent 0bb1758d61
commit 31a5a6dd13
1 changed files with 1 additions and 1 deletions

View File

@ -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 '