diff --git a/tests/api/test_bma.py b/tests/api/test_bma.py
index 454f469a7dfcfcf5e57d36027e394c7f18d102bc..44db3fc6ba90cc5b92204f1db4378a3770a0b584 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")