@@ -2754,7 +2754,7 @@ def testV6HashIsNotConstant(self):
27542754 ipv6_address2 = ipaddress .IPv6Interface ("2001:658:22a:cafe:200:0:0:2" )
27552755 self .assertNotEqual (ipv6_address1 .__hash__ (), ipv6_address2 .__hash__ ())
27562756
2757- def test_ipv6_network_address_deprecation (self ):
2757+ def testV6NetworkAddressDeprecation (self ):
27582758 network = ipaddress .IPv6Network ('2001:658:22a:cafe::/64' )
27592759 with self .assertWarns (DeprecationWarning ) as warn :
27602760 addr = network .network_address
@@ -2765,7 +2765,7 @@ def test_ipv6_network_address_deprecation(self):
27652765 self .assertIn ("IPv6 has no network addresses" , str (warn .warning ))
27662766 self .assertIn ("consider using first_address or subnet_router_anycast_address instead" , str (warn .warning ))
27672767
2768- def test_ipv6_broadcast_address_deprecation (self ):
2768+ def testV6NetworkBroadcastAddressDeprecation (self ):
27692769 network = ipaddress .IPv6Network ('2001:658:22a:cafe::/64' )
27702770 with self .assertWarns (DeprecationWarning ) as warn :
27712771 addr = network .broadcast_address
@@ -2775,13 +2775,13 @@ def test_ipv6_broadcast_address_deprecation(self):
27752775 self .assertIn ("IPv6 has no broadcast addresses" , str (warn .warning ))
27762776 self .assertIn ("consider using last_address instead" , str (warn .warning ))
27772777
2778- def test_ipv4_first_address (self ):
2778+ def testV4NetworkFirstAddress (self ):
27792779 network = ipaddress .IPv4Network ('192.0.2.0/24' )
27802780 addr = network .first_address
27812781 self .assertEqual (addr , ipaddress .IPv4Address ("192.0.2.0" ))
27822782 self .assertEqual (int (addr ), 3221225984 )
27832783
2784- def test_ipv4_last_address (self ):
2784+ def testV6NetworkLastAddress (self ):
27852785 network = ipaddress .IPv4Network ('192.0.2.0/24' )
27862786 addr = network .last_address
27872787 self .assertEqual (addr , ipaddress .IPv4Address ("192.0.2.255" ))
0 commit comments