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