Пример #1
0
def test_NotConditional_defaults(always):
    Cond = Not(always)

    assert (
        (Cond.requirements, Cond.op, Cond.until, Cond.negated)
        == ((always,), operator.and_, None, True)
    )
Пример #2
0
def test_NotConditional_many_mixed(always, never, member, request):
    assert Not(always, never)(member, request)
Пример #3
0
def test_NotConditional_many_all_false(never, member, request):
    assert Not(never, never)(member, request)
Пример #4
0
def test_NotConditional_many_all_true(always, member, request):
    assert not Not(always, always)(member, request)
Пример #5
0
def test_NotConditional_singular_false(never, member, request):
    assert Not(never)(member, request)
Пример #6
0
def test_NotConditional_singular_true(always, member, request):
    assert not Not(always)(member, request)