def test_norm_path(bad, good): output = urlnorm.norm_path("http", bad) assert output == _unicode(good)
def test_norms(bad, good): new_url = urlnorm.norm(bad) assert new_url == _unicode(good)