MCPcopy Create free account
hub / github.com/ceph/ceph / test_unwrap_ipv6

Function test_unwrap_ipv6

src/python-common/ceph/tests/test_utils.py:17–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16
17def test_unwrap_ipv6():
18 def unwrap_test(address, expected):
19 assert unwrap_ipv6(address) == expected
20
21 tests = [
22 ('::1', '::1'), ('[::1]', '::1'),
23 ('[fde4:8dba:82e1:0:5054:ff:fe6a:357]', 'fde4:8dba:82e1:0:5054:ff:fe6a:357'),
24 ('can actually be any string', 'can actually be any string'),
25 ('[but needs to be stripped] ', '[but needs to be stripped] ')]
26 for address, expected in tests:
27 unwrap_test(address, expected)
28
29
30def test_wrap_ipv6():

Callers

nothing calls this directly

Calls 1

unwrap_testFunction · 0.85

Tested by

no test coverage detected