Ejemplo n.º 1
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")
Ejemplo n.º 2
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')
Ejemplo n.º 3
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")