def test_or_false_3(message): a = Or(lambda x: False, lambda x: False, lambda x: False) assert not a(message)
def test_or_true_right(message): a = Or(lambda x: True, lambda x: False) assert a(message)
def test_or_3_true(message): a = Or(lambda x: True, lambda x: True, lambda x: True) assert a(message)
def test_or_true_left(message): a = Or(lambda x: False, lambda x: True) assert a(message)
def test_or_exception(): with pytest.raises(Exception): Or(2)