def test_get_subnet_length(self): """ Test if it disable an interface. """ self.assertEqual(win_ip.get_subnet_length("255.255.255.0"), 24) self.assertRaises(SaltInvocationError, win_ip.get_subnet_length, "255.255.0")
def test_get_subnet_length(self): ''' Test if it disable an interface. ''' self.assertEqual(win_ip.get_subnet_length('255.255.255.0'), 24) self.assertRaises(SaltInvocationError, win_ip.get_subnet_length, '255.255.0')
def test_get_subnet_length(self): """ Test if it disable an interface. """ self.assertEqual(win_ip.get_subnet_length("255.255.255.0"), 24) self.assertRaises(SaltInvocationError, win_ip.get_subnet_length, "255.255.0")