From e7791a2110b9de7721b251d11f1e608553752f51 Mon Sep 17 00:00:00 2001 From: Dan <22e889d8@opayq.com> Date: Tue, 31 Jan 2017 18:05:23 +0000 Subject: [PATCH] Updated run with user test --- tests/test_pssh_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_pssh_client.py b/tests/test_pssh_client.py index f9b23a6c..978f3888 100644 --- a/tests/test_pssh_client.py +++ b/tests/test_pssh_client.py @@ -982,7 +982,7 @@ def test_run_command_user_sudo(self): self.client.join(output) stderr = list(output[self.host].stderr) self.assertTrue(len(stderr) > 0) - self.assertTrue(user in stderr[0]) + self.assertTrue(output[self.host].exit_code == 1) def test_run_command_shell(self): output = self.client.run_command(self.fake_cmd, shell="bash -c")