the test below should match -- " ' 1 ' ' 2 ' " is a valid string that we should be able to match
def testNoMatchMultiPart(self):
node = create_node.Constant("\"'1''2'\"", "\"")
string = "\"'1''2'\""
matcher = GetDynamicMatcher(node)
with pytest.raises(BadlySpecifiedTemplateError) as e:
matcher.do_match(string)
the test below should match -- " ' 1 ' ' 2 ' " is a valid string that we should be able to match def testNoMatchMultiPart(self): node = create_node.Constant("\"'1''2'\"", "\"") string = "\"'1''2'\"" matcher = GetDynamicMatcher(node) with pytest.raises(BadlySpecifiedTemplateError) as e: matcher.do_match(string)