예제 #1
0
def positive(element, scheme):
    assert not isitbullshit(element, scheme)

    IsItBullshitMixin.assertNotBullshit(element, scheme)
    with pytest.raises(AssertionError):
        IsItBullshitMixin.assertBullshit(element, scheme)
    raise_for_problem(element, scheme)
예제 #2
0
def positive(element, scheme):
    assert not isitbullshit(element, scheme)

    IsItBullshitMixin.assertNotBullshit(element, scheme)
    with pytest.raises(AssertionError):
        IsItBullshitMixin.assertBullshit(element, scheme)
    raise_for_problem(element, scheme)
예제 #3
0
def negative(element, scheme):
    assert isitbullshit(element, scheme)

    IsItBullshitMixin.assertBullshit(element, scheme)
    with pytest.raises(AssertionError):
        IsItBullshitMixin.assertNotBullshit(element, scheme)
    with pytest.raises(ItIsBullshitError):
        raise_for_problem(element, scheme)
예제 #4
0
def negative(element, scheme):
    assert isitbullshit(element, scheme)

    IsItBullshitMixin.assertBullshit(element, scheme)
    with pytest.raises(AssertionError):
        IsItBullshitMixin.assertNotBullshit(element, scheme)
    with pytest.raises(ItIsBullshitError):
        raise_for_problem(element, scheme)