def test_does_not_match_when_no_child_does(self): node = AndNode((FalseNode(), FalseNode())) result = node.match(()) result |should| be(False)
def test_does_not_match_when_no_child_does(self): node = AndNode((FalseNode(), FalseNode())) result = node.match(()) result | should | be(False)
def test_matches_when_all_child_nodes_do(self): node = AndNode((TrueNode(), TrueNode())) result = node.match(()) result |should| be(True)
def test_matches_when_all_child_nodes_do(self): node = AndNode((TrueNode(), TrueNode())) result = node.match(()) result | should | be(True)