diff options
author | Timothy Appnel <tim@appnel.com> | 2014-04-16 00:02:14 +0200 |
---|---|---|
committer | Timothy Appnel <tim@appnel.com> | 2014-04-16 01:35:53 +0200 |
commit | fd35c59fc1cffdb106229a8d1e85857a2e9ab3f5 (patch) | |
tree | 352f8c3ab55fe674ac363135655951002768b0db /test | |
parent | Merge pull request #7000 from adammenges/quick-doc-fix (diff) | |
download | ansible-fd35c59fc1cffdb106229a8d1e85857a2e9ab3f5.tar.xz ansible-fd35c59fc1cffdb106229a8d1e85857a2e9ab3f5.zip |
Fixed escaping of " in test_make_sudo_cmd in TestUtils so that it passes
as it should.
Signed-off-by: Timothy Appnel <tim@appnel.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/units/TestUtils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/units/TestUtils.py b/test/units/TestUtils.py index 85564c96cc..a0c9490b74 100644 --- a/test/units/TestUtils.py +++ b/test/units/TestUtils.py @@ -503,7 +503,7 @@ class TestUtils(unittest.TestCase): self.assertTrue(isinstance(cmd, tuple)) self.assertEqual(len(cmd), 3) self.assertTrue('-u root' in cmd[0]) - self.assertTrue('-p "[sudo via ansible, key=' in cmd[0] and cmd[1].startswith('[sudo via ansible, key')) + self.assertTrue('-p \\"[sudo via ansible, key=' in cmd[0] and cmd[1].startswith('[sudo via ansible, key')) self.assertTrue('echo SUDO-SUCCESS-' in cmd[0] and cmd[2].startswith('SUDO-SUCCESS-')) self.assertTrue('sudo -k' in cmd[0]) |