Mercurial > hgsubversion
comparison tests/test_fetch_command.py @ 1578:68965b2e3401
tests: use repo['.'] instead of repo to check whether file exists
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Thu, 26 Jul 2018 15:56:24 +0300 |
parents | d55c9d0ba350 |
children | e2d38f6b8afe |
comparison
equal
deleted
inserted
replaced
1577:af9a3156f8ae | 1578:68965b2e3401 |
---|---|
85 | 85 |
86 def test_file_mixed_with_branches(self): | 86 def test_file_mixed_with_branches(self): |
87 repo = self._load_fixture_and_fetch('file_mixed_with_branches.svndump') | 87 repo = self._load_fixture_and_fetch('file_mixed_with_branches.svndump') |
88 self.assertEqual(node.hex(revsymbol(repo, 'default').node()), | 88 self.assertEqual(node.hex(revsymbol(repo, 'default').node()), |
89 '434ed487136c1b47c1e8f952edb4dc5a8e6328df') | 89 '434ed487136c1b47c1e8f952edb4dc5a8e6328df') |
90 assert 'README' not in repo | 90 assert 'README' not in repo['.'] |
91 assert '../branches' not in repo | 91 assert '../branches' not in repo['.'] |
92 | 92 |
93 def test_files_copied_from_outside_btt(self): | 93 def test_files_copied_from_outside_btt(self): |
94 repo = self._load_fixture_and_fetch( | 94 repo = self._load_fixture_and_fetch( |
95 'test_files_copied_from_outside_btt.svndump') | 95 'test_files_copied_from_outside_btt.svndump') |
96 self.assertEqual(node.hex(revsymbol(repo, 'tip').node()), | 96 self.assertEqual(node.hex(revsymbol(repo, 'tip').node()), |