Skip to content

Commit

Permalink
Comma is also dependent on position within the hash
Browse files Browse the repository at this point in the history
  • Loading branch information
abadger committed Mar 12, 2015
1 parent c94c3d1 commit f05cda6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/units/TestModuleUtilsBasic.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,10 @@ def test_log_sanitize_correctness(self):
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
Expand Down

0 comments on commit f05cda6

Please sign in to comment.