Make parsing for namespaces more strictly
Change-Id: I9c80badd88be069e34743e1ef132e687122c9739
This commit is contained in:
parent
0bb1758d61
commit
31a5a6dd13
@ -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 '
|
||||
|
Loading…
x
Reference in New Issue
Block a user