Esempio n. 1
0
def test_basic_url():
    assert like_url('www.google.com')
    assert like_url('google.com')
    assert like_url('sydney.com')
    assert like_url('Sydney.edu')
    assert like_url('2girls1cup.org')
Esempio n. 2
0
def test_non_match():
    assert not like_url('dog')
    assert not like_url('1.2')
    assert not like_url('1.a')
    assert not like_url('hello.There')
Esempio n. 3
0
def test_close_enough():
    assert like_url('http://stupid')
    assert like_url('www.hi')
Esempio n. 4
0
def test_basic_url():
    assert like_url("www.google.com")
    assert like_url("google.com")
    assert like_url("sydney.com")
    assert like_url("Sydney.edu")
    assert like_url("2girls1cup.org")
Esempio n. 5
0
def test_non_match():
    assert not like_url("dog")
    assert not like_url("1.2")
    assert not like_url("1.a")
    assert not like_url("hello.There")
Esempio n. 6
0
def test_close_enough():
    assert like_url("http://stupid")
    assert like_url("www.hi")