<s> from netaddr import IPAddress , IPNetwork <EOL> def test_ip_v4_to_ipv6_mapped ( ) : <EOL> ip = IPAddress ( '<STR_LIT>' ) . ipv6 ( ) <EOL> assert ip == IPAddress ( '<STR_LIT>' ) <EOL> assert ip . is_ipv4_mapped ( ) <EOL> assert not ip . is_ipv4_compat ( ) <EOL> def test_ip_v4_to_ipv4 ( ) : <EOL> assert IPAddress ( '<STR_LIT>' ) . ipv4 ( ) == IPAddress ( '<STR_LIT>' ) <EOL> def test_ip_v4_to_ipv6_compatible ( ) : <EOL> assert IPAddress ( '<STR_LIT>' ) . ipv6 ( ipv4_compatible = True ) == IPAddress ( '<STR_LIT>' ) <EOL> assert IPAddress ( '<STR_LIT>' ) . ipv6 ( ipv4_compatible = True ) . is_ipv4_compat ( ) <EOL> assert IPAddress ( '<STR_LIT>' ) . ipv6 ( True ) == IPAddress ( '<STR_LIT>' ) <EOL> ip = IPNetwork ( '<STR_LIT>' ) <EOL> assert ip . ipv4 ( ) == IPNetwork ( '<STR_LIT>' ) <EOL> assert ip . ipv6 ( ) == IPNetwork ( '<STR_LIT>' ) <EOL> assert ip . ipv6 ( ipv4_compatible = True ) == IPNetwork ( '<STR_LIT>' ) <EOL> def test_ip_v6_to_ipv4 ( ) : <EOL> assert IPNetwork ( '<STR_LIT>' ) . ipv6 ( ipv4_compatible = True ) == IPNetwork ( '<STR_LIT>' ) <EOL> assert IPNetwork ( '<STR_LIT>' ) . ipv4 ( ) == IPNetwork ( '<STR_LIT>' ) <EOL> assert IPNetwork ( '<STR_LIT>' ) . ipv4 ( ) == IPNetwork ( '<STR_LIT>' ) <EOL> def test_ip_v6_to_ipv6 ( ) : <EOL> assert IPNetwork ( '<STR_LIT>' ) . ipv6 ( ) == IPNetwork ( '<STR_LIT>' ) </s>
