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