예제 #1
0
 def test_does_not_match_when_no_child_does(self):
     node = AndNode((FalseNode(), FalseNode()))
     result = node.match(())
     result |should| be(False)
예제 #2
0
 def test_does_not_match_when_no_child_does(self):
     node = AndNode((FalseNode(), FalseNode()))
     result = node.match(())
     result | should | be(False)
예제 #3
0
 def test_matches_when_all_child_nodes_do(self):
     node = AndNode((TrueNode(), TrueNode()))
     result = node.match(())
     result |should| be(True)
예제 #4
0
 def test_matches_when_all_child_nodes_do(self):
     node = AndNode((TrueNode(), TrueNode()))
     result = node.match(())
     result | should | be(True)