def test_double_star(): assert bleach._domain_match('ex.mp', '**.ex.mp') try: bleach._domain_match('ex.mp', 'an.**.ex.mp') except bleach.ValidationError: pass else: assert False, '_domain_match should not accept an.**.ex.mp'
def _check(t, c, v): eq_(v, bleach._domain_match(t, c))