Beispiel #1
0
 def test_run(self):
     result = SyncRemoteProcess.run('localhost', ['/bin/echo', '-n', 'foo'])
     self.assertEqual('foo', result)
Beispiel #2
0
 def test_run_timeout(self):
     result = SyncRemoteProcess.run('localhost', ['/bin/echo', '-n', 'baz'], {}, 5)
     self.assertEquals('baz', result)
Beispiel #3
0
 def test_run_envvar(self):
     result = SyncRemoteProcess.run('localhost', ['/bin/echo', '-n', '${PARAM}'], {'PARAM': 'bar'})
     self.assertEquals('bar', result)
Beispiel #4
0
 def test_run_timeout(self):
     result = SyncRemoteProcess.run('localhost', ['/bin/echo', '-n', 'baz'], {}, 5)
     self.assertEquals(b'baz', result)
Beispiel #5
0
 def test_run_envvar(self):
     result = SyncRemoteProcess.run('localhost', ['/bin/echo', '-n', '${PARAM}'], {'PARAM': 'bar'})
     self.assertEquals(b'bar', result)
Beispiel #6
0
 def test_run(self):
     result = SyncRemoteProcess.run('localhost', ['/bin/echo', '-n', 'foo'])
     self.assertEqual(b'foo', result)