Searched refs:compare_networks (Results 1 – 3 of 3) sorted by relevance
657 .. method:: compare_networks(other)663 >>> ip_network('192.0.2.1/32').compare_networks(ip_network('192.0.2.2/32'))665 >>> ip_network('192.0.2.1/32').compare_networks(ip_network('192.0.2.0/32'))667 >>> ip_network('192.0.2.1/32').compare_networks(ip_network('192.0.2.1/32'))745 .. method:: compare_networks(other)
2019 self.assertEqual(ip1.compare_networks(ip1), 0)2022 self.assertEqual(ip1.compare_networks(ip2), -1)2023 self.assertEqual(ip2.compare_networks(ip1), 1)2025 self.assertEqual(ip1.compare_networks(ip3), -1)2026 self.assertEqual(ip3.compare_networks(ip1), 1)2035 self.assertEqual(ip1.compare_networks(ip3), -1)2041 self.ipv4_network.compare_networks,
874 def compare_networks(self, other): member in _BaseNetwork