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'))
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))
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)