From f05cda6ffc214072afe3e54f280a7ead3ce5623e Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Thu, 12 Mar 2015 13:20:20 -0700 Subject: [PATCH] Comma is also dependent on position within the hash --- test/units/TestModuleUtilsBasic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/units/TestModuleUtilsBasic.py b/test/units/TestModuleUtilsBasic.py index 5fd3d6b1db4..5b8be283071 100644 --- a/test/units/TestModuleUtilsBasic.py +++ b/test/units/TestModuleUtilsBasic.py @@ -323,10 +323,10 @@ class TestModuleUtilsBasicHelpers(unittest.TestCase): self.assertTrue(ssh_output.startswith("{'")) self.assertTrue(ssh_output.endswith("}")) try: - self.assertIn(":********@foo.com/data',", ssh_output) + self.assertIn(":********@foo.com/data'", ssh_output) except AttributeError: # 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 future. We could make it consume less of the data (with the