def test_NotConditional_defaults(always): Cond = Not(always) assert ( (Cond.requirements, Cond.op, Cond.until, Cond.negated) == ((always,), operator.and_, None, True) )
def test_NotConditional_many_mixed(always, never, member, request): assert Not(always, never)(member, request)
def test_NotConditional_many_all_false(never, member, request): assert Not(never, never)(member, request)
def test_NotConditional_many_all_true(always, member, request): assert not Not(always, always)(member, request)
def test_NotConditional_singular_false(never, member, request): assert Not(never)(member, request)
def test_NotConditional_singular_true(always, member, request): assert not Not(always)(member, request)