def test_enough_inputs(self): """ If node inputs are satisfied, validation succeeds """ n = Node("a") | Node("b") n.validate()
def test_not_enough_inputs(self): """ If node has insufficient inputs, it fails to validate """ n = Node("a") with self.assertRaises(ValidationError): n.validate() n.validate(False)