Merge "Make parsing for namespaces more strictly"

This commit is contained in:
Jenkins 2016-08-01 08:08:48 +00:00 committed by Gerrit Code Review
commit 82a562d080
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 '