Skip to content
Snippets Groups Projects
Commit 3631365f authored by inso's avatar inso
Browse files

Fix error iwth ipv6

parent ef52f4eb
Branches
Tags
No related merge requests found
...@@ -18,7 +18,7 @@ class Test_BMA_API(unittest.TestCase): ...@@ -18,7 +18,7 @@ class Test_BMA_API(unittest.TestCase):
def test_reverse_url_only_ipv6(self): def test_reverse_url_only_ipv6(self):
endpoint = BMAEndpoint(None, None, "2001:0db8:0000:85a3:0000:0000:ac1f:8001", 9092) endpoint = BMAEndpoint(None, None, "2001:0db8:0000:85a3:0000:0000:ac1f:8001", 9092)
api = API(endpoint.conn_handler(), "any") api = API(endpoint.conn_handler(), "any")
self.assertEqual(api.reverse_url("http", "/test/url"), "http://2001:0db8:0000:85a3:0000:0000:ac1f:8001:9092/any/test/url") self.assertEqual(api.reverse_url("http", "/test/url"), "http://[2001:0db8:0000:85a3:0000:0000:ac1f:8001]:9092/any/test/url")
def test_parse_error(self): def test_parse_error(self):
api = API(None, "any") api = API(None, "any")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment