コード例 #1
0
ファイル: remote.py プロジェクト: kumagi/jubatest
 def test_run(self):
     result = SyncRemoteProcess.run('localhost', ['/bin/echo', '-n', 'foo'])
     self.assertEqual('foo', result)
コード例 #2
0
ファイル: remote.py プロジェクト: rimms/jubatest
 def test_run_timeout(self):
     result = SyncRemoteProcess.run('localhost', ['/bin/echo', '-n', 'baz'], {}, 5)
     self.assertEquals('baz', result)
コード例 #3
0
ファイル: remote.py プロジェクト: rimms/jubatest
 def test_run_envvar(self):
     result = SyncRemoteProcess.run('localhost', ['/bin/echo', '-n', '${PARAM}'], {'PARAM': 'bar'})
     self.assertEquals('bar', result)
コード例 #4
0
ファイル: remote.py プロジェクト: kmaehashi/jubatest
 def test_run_timeout(self):
     result = SyncRemoteProcess.run('localhost', ['/bin/echo', '-n', 'baz'], {}, 5)
     self.assertEquals(b'baz', result)
コード例 #5
0
ファイル: remote.py プロジェクト: kmaehashi/jubatest
 def test_run_envvar(self):
     result = SyncRemoteProcess.run('localhost', ['/bin/echo', '-n', '${PARAM}'], {'PARAM': 'bar'})
     self.assertEquals(b'bar', result)
コード例 #6
0
ファイル: remote.py プロジェクト: kmaehashi/jubatest
 def test_run(self):
     result = SyncRemoteProcess.run('localhost', ['/bin/echo', '-n', 'foo'])
     self.assertEqual(b'foo', result)