def test_cidr_comparison(self): self.assertTrue( NuageMechanismDriver.compare_cidr('cafe:babe::1/64', 'cafe:babe:0::1/64')) self.assertFalse( NuageMechanismDriver.compare_cidr('cafe:babe::1/64', 'cafe:babe::1/63'))
def test_ip_comparison(self): self.assertTrue( NuageMechanismDriver.compare_ip('cafe:babe::1', 'cafe:babe:0::1')) self.assertFalse( NuageMechanismDriver.compare_cidr('cafe:babe::1', 'cafe:babe:1::1'))