summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2013-12-05 15:22:52 -0500
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2013-12-05 15:22:52 -0500
commit9a83b7b25a2aa8fe48e291d6918cacb99750ac5a (patch)
tree14e085d748c67ece20f371fd0ee309a182c51f8f /testsuite
parent1c335d124031b28d240559770c2a45059bb4e273 (diff)
downloadbcfg2-9a83b7b25a2aa8fe48e291d6918cacb99750ac5a.tar.gz
bcfg2-9a83b7b25a2aa8fe48e291d6918cacb99750ac5a.tar.bz2
bcfg2-9a83b7b25a2aa8fe48e291d6918cacb99750ac5a.zip
testsuite: fixed local implementation of assertItemsEqual
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/common.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/testsuite/common.py b/testsuite/common.py
index 536b11cbd..7471795a6 100644
--- a/testsuite/common.py
+++ b/testsuite/common.py
@@ -223,8 +223,11 @@ class Bcfg2TestCase(unittest.TestCase):
lines = ['First has %d, Second has %d: %r' % diff
for diff in differences]
diffMsg = '\n'.join(lines)
- standardMsg = self._truncateMessage(standardMsg, diffMsg)
- msg = self._formatMessage(msg, standardMsg)
+ standardMsg += diffMsg
+ if msg is None:
+ msg = standardMsg
+ else:
+ msg = "%s : %s" % (standardMsg, msg)
self.fail(msg)
if not hasattr(unittest.TestCase, "assertRegexpMatches"):