comparison tests/test_fetch_renames.py @ 1484:9f1fa3cc6ba5 stable

test_fetch_renames: change how this if statement works It was just muddying the waters a little when I had to do some debugging.
author Augie Fackler <raf@durin42.com>
date Sun, 26 Jun 2016 20:29:49 -0400
parents 4379baf58f9e
children 6088597abd20
comparison
equal deleted inserted replaced
1483:4379baf58f9e 1484:9f1fa3cc6ba5
78 want = copymap.get(f) 78 want = copymap.get(f)
79 self.assertEqual( 79 self.assertEqual(
80 bool(cp), bool(want), 80 bool(cp), bool(want),
81 'copy records differ for %s in %d (want %r, got %r)' % ( 81 'copy records differ for %s in %d (want %r, got %r)' % (
82 f, rev, want, cp)) 82 f, rev, want, cp))
83 if not cp: 83 if cp:
84 continue 84 self.assertEqual(cp[0], want[0])
85 self.assertEqual(cp[0], want[0]) 85 self.assertEqual(ctx[f].data(), want[1])
86 self.assertEqual(ctx[f].data(), want[1])
87 86
88 self.assertEqual(repo['tip']['changed3'].data(), 'changed\nchanged3\n') 87 self.assertEqual(repo['tip']['changed3'].data(), 'changed\nchanged3\n')
89 88
90 def test_case(self): 89 def test_case(self):
91 repo = self._load_fixture_and_fetch('filecase.svndump') 90 repo = self._load_fixture_and_fetch('filecase.svndump')