Esempio n. 1
0
def test_httpify_should_prepend_http_to_adress_without_http():
    assert webapp.httpify('vg.no') == 'http://vg.no'
Esempio n. 2
0
def test_httpify_should_not_prepend_when_adress_already_has_http():
    assert webapp.httpify('http://vg.no') == 'http://vg.no'
Esempio n. 3
0
def test_httpify_should_strip_whitescpace():
    assert webapp.httpify(' http://vg.no ') == 'http://vg.no'