from __future__ import unicode_literals
from httoop import URI


def test_simple_uri_comparision(uri):
    u1 = URI(b'http://abc.com:80/~smith/home.html')
    u2 = URI(b'http://ABC.com/%7Esmith/home.html')
    u3 = URI(b'http://ABC.com:/%7esmith/home.html')
    u4 = URI(b'http://ABC.com:/%7esmith/./home.html')
    u5 = URI(b'http://ABC.com:/%7esmith/foo/../home.html')
    assert u1 == u2
    assert u2 == u3
    assert u1 == u3
    assert u1 == u4
    assert u1 == u5


def test_request_uri_maxlength():
    pass


def test_request_uri_is_star():
    pass


def test_request_uri_containig_fragment():
    pass


def test_invalid_uri_scheme():
    pass


def test_invalid_port():
    pass


def test_normalized_uri_redirects():
    pass


def test_uri_composing_username_and_password():
    assert bytes(URI(b'http://username@example.com')
        ) == b'http://username@example.com'
    assert bytes(URI(b'http://username:password@example.com')
        ) == b'http://username:password@example.com'

3959e1163c18ca054b2800a76dc4003bbe14d569
<mask token>


def test_simple_uri_comparision(uri):
    u1 = URI(b'http://abc.com:80/~smith/home.html')
    u2 = URI(b'http://ABC.com/%7Esmith/home.html')
    u3 = URI(b'http://ABC.com:/%7esmith/home.html')
    u4 = URI(b'http://ABC.com:/%7esmith/./home.html')
    u5 = URI(b'http://ABC.com:/%7esmith/foo/../home.html')
    assert u1 == u2
    assert u2 == u3
    assert u1 == u3
    assert u1 == u4
    assert u1 == u5


def test_request_uri_maxlength():
    pass


def test_request_uri_is_star():
    pass


<mask token>


def test_invalid_uri_scheme():
    pass


<mask token>

<mask token>


def test_simple_uri_comparision(uri):
    u1 = URI(b'http://abc.com:80/~smith/home.html')
    u2 = URI(b'http://ABC.com/%7Esmith/home.html')
    u3 = URI(b'http://ABC.com:/%7esmith/home.html')
    u4 = URI(b'http://ABC.com:/%7esmith/./home.html')
    u5 = URI(b'http://ABC.com:/%7esmith/foo/../home.html')
    assert u1 == u2
    assert u2 == u3
    assert u1 == u3
    assert u1 == u4
    assert u1 == u5


def test_request_uri_maxlength():
    pass


def test_request_uri_is_star():
    pass


def test_request_uri_containig_fragment():
    pass


def test_invalid_uri_scheme():
    pass


<mask token>


def test_normalized_uri_redirects():
    pass


<mask token>

<mask token>


def test_simple_uri_comparision(uri):
    u1 = URI(b'http://abc.com:80/~smith/home.html')
    u2 = URI(b'http://ABC.com/%7Esmith/home.html')
    u3 = URI(b'http://ABC.com:/%7esmith/home.html')
    u4 = URI(b'http://ABC.com:/%7esmith/./home.html')
    u5 = URI(b'http://ABC.com:/%7esmith/foo/../home.html')
    assert u1 == u2
    assert u2 == u3
    assert u1 == u3
    assert u1 == u4
    assert u1 == u5


def test_request_uri_maxlength():
    pass


def test_request_uri_is_star():
    pass


def test_request_uri_containig_fragment():
    pass


def test_invalid_uri_scheme():
    pass


def test_invalid_port():
    pass


def test_normalized_uri_redirects():
    pass


def test_uri_composing_username_and_password():
    assert bytes(URI(b'http://username@example.com')
        ) == b'http://username@example.com'
    assert bytes(URI(b'http://username:password@example.com')
        ) == b'http://username:password@example.com'

from __future__ import unicode_literals
from httoop import URI


def test_simple_uri_comparision(uri):
    u1 = URI(b'http://abc.com:80/~smith/home.html')
    u2 = URI(b'http://ABC.com/%7Esmith/home.html')
    u3 = URI(b'http://ABC.com:/%7esmith/home.html')
    u4 = URI(b'http://ABC.com:/%7esmith/./home.html')
    u5 = URI(b'http://ABC.com:/%7esmith/foo/../home.html')
    assert u1 == u2
    assert u2 == u3
    assert u1 == u3
    assert u1 == u4
    assert u1 == u5


def test_request_uri_maxlength():
    pass


def test_request_uri_is_star():
    pass


def test_request_uri_containig_fragment():
    pass


def test_invalid_uri_scheme():
    pass


def test_invalid_port():
    pass


def test_normalized_uri_redirects():
    pass


def test_uri_composing_username_and_password():
    assert bytes(URI(b'http://username@example.com')
        ) == b'http://username@example.com'
    assert bytes(URI(b'http://username:password@example.com')
        ) == b'http://username:password@example.com'
