Ejemplo n.º 1
0
def test_NotConditional_defaults(always):
    Cond = Not(always)

    assert (
        (Cond.requirements, Cond.op, Cond.until, Cond.negated)
        == ((always,), operator.and_, None, True)
    )
Ejemplo n.º 2
0
def test_NotConditional_many_mixed(always, never, member, request):
    assert Not(always, never)(member, request)
Ejemplo n.º 3
0
def test_NotConditional_many_all_false(never, member, request):
    assert Not(never, never)(member, request)
Ejemplo n.º 4
0
def test_NotConditional_many_all_true(always, member, request):
    assert not Not(always, always)(member, request)
Ejemplo n.º 5
0
def test_NotConditional_singular_false(never, member, request):
    assert Not(never)(member, request)
Ejemplo n.º 6
0
def test_NotConditional_singular_true(always, member, request):
    assert not Not(always)(member, request)