From 754d635aca43a30edb6feca4606ac3b962bded2c Mon Sep 17 00:00:00 2001 From: Timothy Appnel Date: Tue, 27 May 2014 10:50:19 -0400 Subject: [PATCH] Recent BSD su work introduced a failing test. Removed leading space from the assertion that seems to be the culprit. --- test/units/TestUtils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/units/TestUtils.py b/test/units/TestUtils.py index 6241fd77981..241f9cd7e1c 100644 --- a/test/units/TestUtils.py +++ b/test/units/TestUtils.py @@ -512,7 +512,7 @@ class TestUtils(unittest.TestCase): cmd = ansible.utils.make_su_cmd('root', '/bin/sh', '/bin/ls') self.assertTrue(isinstance(cmd, tuple)) self.assertEqual(len(cmd), 3) - self.assertTrue(' root -c "/bin/sh' in cmd[0]) + self.assertTrue('root -c "/bin/sh' in cmd[0]) self.assertTrue(re.compile(cmd[1])) self.assertTrue('echo SUDO-SUCCESS-' in cmd[0] and cmd[2].startswith('SUDO-SUCCESS-'))