Пример #1
0
 def test_check_network_up(self, command_util):
     command_util().stdout.read.return_value = IP_LINK_SHOW_UP
     self.assertTrue(utils.check_network_up('eth0'))
Пример #2
0
 def test_check_network_down(self):
     """Verify that false would be returned on test network down
     """
     self.assertFalse(utils.check_network_up(self.iface_down))
Пример #3
0
 def test_check_network_up(self):
     """Verify that true would be returned on test network up
     """
     result = utils.check_network_up('eth0')
     self.assertTrue(result)
Пример #4
0
 def test_check_network_down(self):
     """Verify that false would be returned on test network down
     """
     self.assertFalse(utils.check_network_up(self.iface_down))
Пример #5
0
 def test_check_network_up(self):
     """Verify that true would be returned on test network up
     """
     result = utils.check_network_up('eth0')
     self.assertTrue(result)
Пример #6
0
 def test_check_network_up(self, command_util):
     command_util().stdout.read.return_value = IP_LINK_SHOW_UP
     self.assertTrue(utils.check_network_up('eth0'))