# HG changeset patch # User Augie Fackler # Date 1466987152 14400 # Node ID 4379baf58f9ed81bd3313c6dcf392cb858e4b538 # Parent 253b2ab253a1726106be9fe6ac126a850d506bcd test_fetch_renames: refactoring to make debugging easier diff --git a/tests/test_fetch_renames.py b/tests/test_fetch_renames.py --- a/tests/test_fetch_renames.py +++ b/tests/test_fetch_renames.py @@ -75,12 +75,15 @@ class TestFetchRenames(test_util.TestBas copymap = copies.get(rev, {}) for f in ctx.manifest(): cp = ctx[f].renamed() - self.assertEqual(bool(cp), bool(copymap.get(f)), - 'copy records differ for %s in %d' % (f, rev)) + want = copymap.get(f) + self.assertEqual( + bool(cp), bool(want), + 'copy records differ for %s in %d (want %r, got %r)' % ( + f, rev, want, cp)) if not cp: continue - self.assertEqual(cp[0], copymap[f][0]) - self.assertEqual(ctx[f].data(), copymap[f][1]) + self.assertEqual(cp[0], want[0]) + self.assertEqual(ctx[f].data(), want[1]) self.assertEqual(repo['tip']['changed3'].data(), 'changed\nchanged3\n')