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)
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)