Exemplo n.º 1
0
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'
Exemplo n.º 2
0
 def _check(t, c, v):
     eq_(v, bleach._domain_match(t, c))