def test_with_predicate_unmet(self): req = Request({}, make_user(None)) assert_false(is_met(MockPredicate(False), req))
def test_with_predicate_met(self): req = Request({}, make_user(None)) ok_(is_met(MockPredicate(), req))