Merge "Make parsing for namespaces more strictly"
This commit is contained in:
commit
82a562d080
@ -52,7 +52,7 @@ class TestNamespaces(testtools.TestCase):
|
|||||||
with open(cls_name) as f:
|
with open(cls_name) as f:
|
||||||
data = f.read()
|
data = f.read()
|
||||||
|
|
||||||
regexp_str = '%s:[A-Z]+' % namespace
|
regexp_str = '[^a-zA-Z]%s:[a-zA-Z]+' % namespace
|
||||||
regexp = re.compile(regexp_str)
|
regexp = re.compile(regexp_str)
|
||||||
if len(regexp.findall(data)) == 0:
|
if len(regexp.findall(data)) == 0:
|
||||||
msg = ('Namespace "%s" is not used in the "%s" and should '
|
msg = ('Namespace "%s" is not used in the "%s" and should '
|
||||||
|
Loading…
x
Reference in New Issue
Block a user