comparison tests/comprehensive/test_verify_and_startrev.py @ 894:9562f606c4aa

make assertion failures slightly more helpful by including the failing verification
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Sat, 12 May 2012 15:28:44 +0200
parents 3bfb7e985c47
children 6bc8046e3d0a
comparison
equal deleted inserted replaced
893:295a8b48e4e2 894:9562f606c4aa
55 % len(shallowrepo)) 55 % len(shallowrepo))
56 56
57 fulltip = repo['tip'] 57 fulltip = repo['tip']
58 shallowtip = shallowrepo['tip'] 58 shallowtip = shallowrepo['tip']
59 59
60 repo.ui.pushbuffer()
60 self.assertEqual(0, svncommands.verify(repo.ui, shallowrepo, 61 self.assertEqual(0, svncommands.verify(repo.ui, shallowrepo,
61 rev=shallowtip.node())) 62 rev=shallowtip.node()))
62 63
63 # viewing diff's of lists of files is easier on the eyes 64 # viewing diff's of lists of files is easier on the eyes
64 self.assertMultiLineEqual('\n'.join(fulltip), '\n'.join(shallowtip)) 65 self.assertMultiLineEqual('\n'.join(fulltip), '\n'.join(shallowtip),
66 repo.ui.popbuffer())
65 67
66 for f in fulltip: 68 for f in fulltip:
67 self.assertMultiLineEqual(fulltip[f].data(), shallowtip[f].data()) 69 self.assertMultiLineEqual(fulltip[f].data(), shallowtip[f].data())
68 70
69 71