We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dd91cd commit 0c12713Copy full SHA for 0c12713
tests/unit/utils_test.py
@@ -552,6 +552,12 @@ def test_split_port_range_with_protocol(self):
552
self.assertEqual(external_port,
553
[("127.0.0.1", "1000"), ("127.0.0.1", "1001")])
554
555
+ def test_split_port_with_ipv6_address(self):
556
+ internal_port, external_port = split_port(
557
+ "2001:abcd:ef00::2:1000:2000")
558
+ self.assertEqual(internal_port, ["2000"])
559
+ self.assertEqual(external_port, [("2001:abcd:ef00::2", "1000")])
560
+
561
def test_split_port_invalid(self):
562
self.assertRaises(ValueError,
563
lambda: split_port("0.0.0.0:1000:2000:tcp"))
0 commit comments