comparison tests/test_utility_commands.py @ 887:f95c429124f3

make assertion failures slightly prettier and more readable
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Sat, 12 May 2012 11:58:19 +0200
parents ce5837c64b12
children 3bfb7e985c47
comparison
equal deleted inserted replaced
886:d3ff5807f1bd 887:f95c429124f3
256 ret = svncommands.verify(u, repo, [test_util.fileurl(repo_path)], 256 ret = svncommands.verify(u, repo, [test_util.fileurl(repo_path)],
257 rev=1) 257 rev=1)
258 output = u.popbuffer() 258 output = u.popbuffer()
259 self.assertEqual(1, ret) 259 self.assertEqual(1, ret)
260 output = re.sub(r'file://\S+', 'file://', output) 260 output = re.sub(r'file://\S+', 'file://', output)
261 self.assertEqual("""\ 261 self.assertMultiLineEqual("""\
262 verifying d51f46a715a1 against file:// 262 verifying d51f46a715a1 against file://
263 difference in file binary2 263 difference in file binary2
264 unexpected files: 264 unexpected files:
265 binary1 265 binary1
266 missing files: 266 missing files: