def test_any_match_with_none(self): assert any_match(None, [False, 0, None, -1]) assert not any_match(None, [False, 0, None, ''])
def test_any_match_that_not_match(self): assert not any_match(stupid_predicate, [1, 2, 3, -11, 1, 5, 6])