20
20
21
21
# These test values were generated by running them
22
22
# through the go implementation of multiaddr.
23
- # https://github.com/jbenet/ multiaddr
23
+ # https://github.com/multiformats/go- multiaddr
24
24
ADDR_BYTES_MAP_STR_TEST_DATA = [
25
25
(_names_to_protocols ['ip4' ], b'\x0a \x0b \x0c \x0d ' , '10.11.12.13' ),
26
26
(_names_to_protocols ['ip6' ],
@@ -148,6 +148,7 @@ def test_bytes_to_string_value_error(protocol_extension, bytes):
148
148
(_names_to_protocols ['onion' ], 'timaq4ygg2iegci7:0' ),
149
149
(_names_to_protocols ['onion' ], 'timaq4ygg2iegci7:71234' ),
150
150
(_names_to_protocols ['p2p' ], '15230d52ebb89d85b02a284948203a' ),
151
+ (_names_to_protocols ['ip6zone' ], "" ),
151
152
])
152
153
def test_codec_to_bytes_value_error (proto , address ):
153
154
# Codecs themselves may raise any exception type – it will then be converted
@@ -157,7 +158,8 @@ def test_codec_to_bytes_value_error(proto, address):
157
158
158
159
159
160
@pytest .mark .parametrize ("proto, buf" , [
160
- (_names_to_protocols ['tcp' ], b'\xff \xff \xff \xff ' )
161
+ (_names_to_protocols ['tcp' ], b'\xff \xff \xff \xff ' ),
162
+ (_names_to_protocols ['ip6zone' ], b"" ),
161
163
])
162
164
def test_codec_to_string_value_error (proto , buf ):
163
165
# Codecs themselves may raise any exception type – it will then be converted
0 commit comments