def test_combines_parsed_expressions_to_and_expression(self): tags = TagExpression() tags.parse_and_add('@tag_0') tags.and_node |should| be_instance_of(AndNode) child_nodes = tags.and_node.child_nodes len(child_nodes) |should| be(1) child_nodes[0] |should| be_instance_of(TagNode) child_nodes[0].name |should| be_equal_to('tag_0')
def test_combines_parsed_expressions_to_and_expression(self): tags = TagExpression() tags.parse_and_add('@tag_0') tags.and_node | should | be_instance_of(AndNode) child_nodes = tags.and_node.child_nodes len(child_nodes) | should | be(1) child_nodes[0] | should | be_instance_of(TagNode) child_nodes[0].name | should | be_equal_to('tag_0')
def runTest(self): tags = TagExpression() for group in groups: tags.parse_and_add(group) tags.match(test_in) |should| be(test_result)
def runTest(self): tags = TagExpression() for group in groups: tags.parse_and_add(group) tags.match(test_in) | should | be(test_result)