Mercurial > hgsubversion
comparison tests/test_tags.py @ 596:066453cf2014
test_tags: improve test output.
| author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
|---|---|
| date | Sun, 28 Jun 2009 12:50:52 +0200 |
| parents | 00393e9abff8 |
| children | d2ef7220a079 |
comparison
equal
deleted
inserted
replaced
| 595:200770235bf0 | 596:066453cf2014 |
|---|---|
| 71 def test_tag_by_renaming_branch(self, stupid=False): | 71 def test_tag_by_renaming_branch(self, stupid=False): |
| 72 repo = self._load_fixture_and_fetch('tag_by_rename_branch.svndump', | 72 repo = self._load_fixture_and_fetch('tag_by_rename_branch.svndump', |
| 73 stupid=stupid) | 73 stupid=stupid) |
| 74 branches = set(repo[h] for h in repo.heads()) | 74 branches = set(repo[h] for h in repo.heads()) |
| 75 self.assert_('dummy' not in branches) | 75 self.assert_('dummy' not in branches) |
| 76 self.assertEqual(repo['dummy'], repo['tip'].parents()[0]) | 76 self.assertEqual(repo['dummy'], repo['tip'].parents()[0], |
| 77 '%r != %r[0]' % (repo['dummy'], | |
| 78 repo['tip'].parents())) | |
| 77 extra = repo['tip'].extra().copy() | 79 extra = repo['tip'].extra().copy() |
| 78 extra.pop('convert_revision', None) | 80 extra.pop('convert_revision', None) |
| 79 self.assertEqual(extra, {'branch': 'dummy', 'close': '1'}) | 81 self.assertEqual(extra, {'branch': 'dummy', 'close': '1'}) |
| 80 | 82 |
| 81 def test_tag_by_renaming_branch_stupid(self): | 83 def test_tag_by_renaming_branch_stupid(self): |
