Exemple #1
0
 def no_match(s):
     match = url_re.search(s)
     if match:
         assert not match, 'matched %s' % s[slice(*match.span())]
Exemple #2
0
 def no_match(s):
     match = url_re.search(s)
     if match:
         assert not match, 'matched {0!s}'.format(s[slice(*match.span())])
Exemple #3
0
 def no_match(s):
     match = url_re.search(s)
     if match:
         assert not match, 'matched %s' % s[slice(*match.span())]
Exemple #4
0
def test_url_re():
    text = 'just what i am looking for...it'
    match = url_re.search(text)
    assert not match, 'matched {0!s}'.format(text[slice(*match.span())])