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