shairubin / fun_with_ast

let's have fun manipulating ASTs in Python
Apache License 2.0
0 stars 1 forks source link

should match strings that have several quotes #165

Open shairubin opened 10 months ago

shairubin commented 10 months ago

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)