Comma is also dependent on position within the hash
This commit is contained in:
parent
7768ab2b5c
commit
1cf533f8df
1 changed files with 2 additions and 2 deletions
|
@ -323,10 +323,10 @@ class TestModuleUtilsBasicHelpers(unittest.TestCase):
|
||||||
self.assertTrue(ssh_output.startswith("{'"))
|
self.assertTrue(ssh_output.startswith("{'"))
|
||||||
self.assertTrue(ssh_output.endswith("}"))
|
self.assertTrue(ssh_output.endswith("}"))
|
||||||
try:
|
try:
|
||||||
self.assertIn(":********@foo.com/data',", ssh_output)
|
self.assertIn(":********@foo.com/data'", ssh_output)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
# python2.6 or less's unittest
|
# python2.6 or less's unittest
|
||||||
self.assertTrue(":********@foo.com/data'," in ssh_output, '%s is not present in %s' % (":********@foo.com/data',", ssh_output))
|
self.assertTrue(":********@foo.com/data'" in ssh_output, '%s is not present in %s' % (":********@foo.com/data'", ssh_output))
|
||||||
|
|
||||||
# The overzealous-ness here may lead to us changing the algorithm in
|
# The overzealous-ness here may lead to us changing the algorithm in
|
||||||
# the future. We could make it consume less of the data (with the
|
# the future. We could make it consume less of the data (with the
|
||||||
|
|
Loading…
Reference in a new issue