()
| 15 | |
| 16 | |
| 17 | def 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 | |
| 30 | def test_wrap_ipv6(): |
nothing calls this directly
no test coverage detected