def test_is_lambda_deterministic_node__lambda_det(self): tested = Node() target1 = Node() target2 = Node() s = 'a' tested.add_transition(s, target1) tested.add_transition(LAMBDA, target2) self.assertTrue(tested.is_lambda_deterministic())
def test_is_lambda_deterministic_node__not_det(self): tested = Node() target1 = Node() target3 = Node() s = 'a' tested.add_transition(s, target1) tested.add_transition(s, target3) self.assertFalse(tested.is_lambda_deterministic())