comparison tests/test_fetch_branches.py @ 337:46e69be8e2c8

Reorganize to have a more conventional module structure. This means that hgsubversion now uses absolute imports instead of relative ones, which makes the tests more reliable.
author Augie Fackler <durin42@gmail.com>
date Wed, 13 May 2009 21:39:39 -0500
parents 33736e2e25f0
children 4dfab1b8b7be
comparison
equal deleted inserted replaced
336:c0b943cef0c3 337:46e69be8e2c8
72 def test_branch_tip_update_to_default(self, stupid=False): 72 def test_branch_tip_update_to_default(self, stupid=False):
73 repo = self._load_fixture_and_fetch('unorderedbranch.svndump', 73 repo = self._load_fixture_and_fetch('unorderedbranch.svndump',
74 stupid, noupdate=False) 74 stupid, noupdate=False)
75 self.assertEqual(repo[None].branch(), 'default') 75 self.assertEqual(repo[None].branch(), 'default')
76 self.assertTrue('tip' not in repo[None].tags()) 76 self.assertTrue('tip' not in repo[None].tags())
77 77
78 def test_branch_tip_update_to_default_stupid(self): 78 def test_branch_tip_update_to_default_stupid(self):
79 self.test_branch_tip_update_to_default(True) 79 self.test_branch_tip_update_to_default(True)
80 80
81 def test_branch_tip_update_to_branch_anchor(self): 81 def test_branch_tip_update_to_branch_anchor(self):
82 repo = self._load_fixture_and_fetch_with_anchor( 82 repo = self._load_fixture_and_fetch_with_anchor(
83 'unorderedbranch.svndump', 'branch') 83 'unorderedbranch.svndump', 'branch')
84 self.assertEqual(repo[None].branch(), 'branch') 84 self.assertEqual(repo[None].branch(), 'branch')
85 self.assertEqual(repo[None].parents()[0], repo[repo.branchheads()[0]]) 85 self.assertEqual(repo[None].parents()[0], repo[repo.branchheads()[0]])