def test_does_not_match_when_no_child_does(self):
     node = AndNode((FalseNode(), FalseNode()))
     result = node.match(())
     result |should| be(False)
Esempio n. 2
0
 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)
Esempio n. 4
0
 def test_matches_when_all_child_nodes_do(self):
     node = AndNode((TrueNode(), TrueNode()))
     result = node.match(())
     result | should | be(True)