Exemplo n.º 1
0
 def test_command_utils_helper(self):
     command = utils.command_util('echo', 'hello')
     self.assertEqual(command.stdout.read(), 'hello\n')
Exemplo n.º 2
0
 def setUp(self):
     self.iface_up = 'eth0'
     self.iface_down = 'eth2'
     utils.command_util('ifconfig', self.iface_down, 'down')
Exemplo n.º 3
0
 def tearDown(self):
     utils.command_util('ifconfig', self.iface_down, 'up')
Exemplo n.º 4
0
 def setUp(self):
     self.iface_up = 'eth0'
     self.iface_down = 'eth2'
     utils.command_util('ifconfig', self.iface_down, 'down')
Exemplo n.º 5
0
 def tearDown(self):
     utils.command_util('ifconfig', self.iface_down, 'up')
Exemplo n.º 6
0
 def test_command_utils_helper(self):
     command = utils.command_util('echo', 'hello')
     self.assertEqual(command.stdout.read(), 'hello\n')