Beispiel #1
0
def test_clean_netloc():
    assert _clean_netloc("example.com.") == "example.com"
    assert _clean_netloc("example.com:") == "example.com"
    assert _clean_netloc("EXAMple.CoM") == "example.com"
    assert _clean_netloc("fOO.baR.example.com") == "foo.bar.example.com"
    assert _clean_netloc("ПриМЕр.Рф") == "пример.рф"
def test_clean_netloc__idn():
    assert _clean_netloc(u'ПриМЕр.Рф') == u'пример.рф'
def test_clean_netloc():
    assert _clean_netloc('example.com.') == 'example.com'
    assert _clean_netloc('example.com:') == 'example.com'
    assert _clean_netloc('fOO.baR.exaMPle.com') == 'foo.bar.example.com'
Beispiel #4
0
def test_clean_netloc__idn():
    assert _clean_netloc(u'ПриМЕр.Рф') == u'пример.рф'
Beispiel #5
0
def test_clean_netloc():
    assert _clean_netloc('example.com.') == 'example.com'
    assert _clean_netloc('example.com:') == 'example.com'
    assert _clean_netloc('fOO.baR.exaMPle.com') == 'foo.bar.example.com'
Beispiel #6
0
def test_clean_netloc():
    assert _clean_netloc("example.com.") == "example.com"
    assert _clean_netloc("example.com:") == "example.com"
    assert _clean_netloc("EXAMple.CoM") == "example.com"
    assert _clean_netloc("fOO.baR.example.com") == "foo.bar.example.com"
    assert _clean_netloc("ПриМЕр.Рф") == "пример.рф"