Beispiel #1
0
def tymer_construct():
    t("""
    parts = extract("http://www.example.com:8080/abc?x=1#rt")
    construct(parts)
    """)
Beispiel #2
0
def tymer_split_netloc():
    t('split_netloc("foo:[email protected]:8080")')
Beispiel #3
0
def tymer__clean_netloc():
    t('_clean_netloc("ПриМЕр.Рф")')
    t('_clean_netloc("example.com:")')
    t('_clean_netloc("fOO.baR.example.com")')
Beispiel #4
0
def tymer_parse():
    t('parse("http://example.com")')
    t('extract("http://example.com")')
    t('urlparse.urlparse("http://example.com")')
    t('tldextract.extract("http://example.com")')
Beispiel #5
0
def tymer_split():
    t('urlparse.urlparse("http://example.com")')
    t('split("http://example.com")')
Beispiel #6
0
def tymer_normalize_query():
    t('normalize_query("")')
    t('normalize_query("x=1")')
    t('normalize_query("x=1&y=&z=3")')
Beispiel #7
0
def tymer_unquote():
    t('unquote("%25%32%35")')
    t('urlparse.unquote("%25%32%35")')
Beispiel #8
0
def tymer_normalize_path():
    t('normalize_path("/foo////../bar/./a/b/")')
    t('posixpath.normpath("/foo////../bar/./a/b/")')
Beispiel #9
0
def tymer_normalize():
    t('normalize("http://WwW.exAmple.com./a/b/..////c?x=1#abc")')
Beispiel #10
0
def tymer__get_public_suffix_list():
    t('_get_public_suffix_list()')
def tymer_assemble():
    stmt = """
    parts = extract("http://www.example.com:8080/abc?x=1#rt")
    assemble(parts)
    """
    t(stmt)
Beispiel #12
0
def tymer_assemble():
    stmt = """
    parts = extract("http://www.example.com:8080/abc?x=1#rt")
    assemble(parts)
    """
    t(stmt)