Skip to content

Commit

Permalink
cover
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Sep 26, 2024
1 parent 2b2e668 commit 299d97e
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tests/test_url_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,17 @@ def test_build_simple():

def test_url_build_ipv6():
u = URL.build(scheme="http", host="::1")
assert str(u) == "http://::1"
assert str(u) == "http://[::1]"


def test_url_build_ipv6_brackets():
u = URL.build(scheme="http", host="[::1]")
assert str(u) == "http://::1"
def test_url_build_ipv6_brackets_encoded():
u = URL.build(scheme="http", host="[::1]", encoded=True)
assert str(u) == "http://[::1]"


def test_url_build_ipv6_brackets_not_encoded():
u = URL.build(scheme="http", host="::1", encoded=False)
assert str(u) == "http://[::1]"


def test_url_ipv4_in_ipv6():
Expand Down

0 comments on commit 299d97e

Please sign in to comment.