def test_command_utils_helper(self): command = utils.command_util('echo', 'hello') self.assertEqual(command.stdout.read(), 'hello\n')
def setUp(self): self.iface_up = 'eth0' self.iface_down = 'eth2' utils.command_util('ifconfig', self.iface_down, 'down')
def tearDown(self): utils.command_util('ifconfig', self.iface_down, 'up')