コード例 #1
0
ファイル: test_utils.py プロジェクト: dshulyak/fuel-web
 def test_command_utils_helper(self):
     command = utils.command_util('echo', 'hello')
     self.assertEqual(command.stdout.read(), 'hello\n')
コード例 #2
0
ファイル: tests.py プロジェクト: AlexeyKasatkin/fuel-web
 def setUp(self):
     self.iface_up = 'eth0'
     self.iface_down = 'eth2'
     utils.command_util('ifconfig', self.iface_down, 'down')
コード例 #3
0
ファイル: tests.py プロジェクト: AlexeyKasatkin/fuel-web
 def tearDown(self):
     utils.command_util('ifconfig', self.iface_down, 'up')
コード例 #4
0
ファイル: tests.py プロジェクト: tleontovich/fuelweb
 def setUp(self):
     self.iface_up = 'eth0'
     self.iface_down = 'eth2'
     utils.command_util('ifconfig', self.iface_down, 'down')
コード例 #5
0
ファイル: tests.py プロジェクト: tleontovich/fuelweb
 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')