comparison tests/test_fetch_command.py @ 1463:86ae03f889a4

test_util: allow counting converted revisions ...and while at it, use a more reliable test for filtering out obsolete revisions.
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Sat, 10 Aug 2013 07:46:21 +0200
parents ca36d5915dc7
children d55c9d0ba350
comparison
equal deleted inserted replaced
1462:7dc5c4368837 1463:86ae03f889a4
91 def test_files_copied_from_outside_btt(self): 91 def test_files_copied_from_outside_btt(self):
92 repo = self._load_fixture_and_fetch( 92 repo = self._load_fixture_and_fetch(
93 'test_files_copied_from_outside_btt.svndump') 93 'test_files_copied_from_outside_btt.svndump')
94 self.assertEqual(node.hex(repo['tip'].node()), 94 self.assertEqual(node.hex(repo['tip'].node()),
95 '3c78170e30ddd35f2c32faa0d8646ab75bba4f73') 95 '3c78170e30ddd35f2c32faa0d8646ab75bba4f73')
96 self.assertEqual(test_util.repolen(repo.changelog), 2) 96 self.assertEqual(test_util.repolen(repo), 2)
97 97
98 def test_file_renamed_in_from_outside_btt(self): 98 def test_file_renamed_in_from_outside_btt(self):
99 repo = self._load_fixture_and_fetch( 99 repo = self._load_fixture_and_fetch(
100 'file_renamed_in_from_outside_btt.svndump') 100 'file_renamed_in_from_outside_btt.svndump')
101 self.assert_('LICENSE.file' in repo['default']) 101 self.assert_('LICENSE.file' in repo['default'])