From 3631365fcdaa3effd53d15566a77f822ccefbef7 Mon Sep 17 00:00:00 2001 From: inso <insomniak.fr@gmaiL.com> Date: Sat, 23 Jul 2016 18:53:53 +0200 Subject: [PATCH] Fix error iwth ipv6 --- tests/api/test_bma.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/api/test_bma.py b/tests/api/test_bma.py index 454f469a..44db3fc6 100644 --- a/tests/api/test_bma.py +++ b/tests/api/test_bma.py @@ -18,7 +18,7 @@ class Test_BMA_API(unittest.TestCase): def test_reverse_url_only_ipv6(self): endpoint = BMAEndpoint(None, None, "2001:0db8:0000:85a3:0000:0000:ac1f:8001", 9092) 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): api = API(None, "any") -- GitLab