def test_regexp_match_any(self): matcher = Matcher('H.llo', regexp=True) assert matcher.match_any(('Hello', 'world')) assert matcher.match_any(['jam', 'is', 'hillo']) assert not matcher.match_any(('no', 'match', 'here')) assert not matcher.match_any(())
def test_match_any(self): matcher = Matcher('H?llo') assert matcher.match_any(('Hello', 'world')) assert matcher.match_any(['jam', 'is', 'hillo']) assert not matcher.match_any(('no', 'match', 'here')) assert not matcher.match_any(())