comparison tests/test_fetch_branches.py @ 117:3afe404042a3

Add a disabled test for unrelated branches The fix is not obvious but preserving the test helps fixing other stuff.
author Patrick Mezard <pmezard@gmail.com>
date Sat, 29 Nov 2008 11:25:01 -0600
parents
children f508c1fa19a5
comparison
equal deleted inserted replaced
116:30580c05dccc 117:3afe404042a3
1 import sys
2 import unittest
3
4 import test_util
5
6
7 class TestFetchBranches(test_util.TestBase):
8 def _load_fixture_and_fetch(self, fixture_name, stupid):
9 return test_util.load_fixture_and_fetch(fixture_name, self.repo_path,
10 self.wc_path, stupid=stupid)
11
12 def test_unrelatedbranch(self, stupid=False):
13 repo = self._load_fixture_and_fetch('unrelatedbranch.svndump', stupid)
14 heads = [repo[n] for n in repo.heads()]
15 heads = dict([(ctx.branch(), ctx) for ctx in heads])
16 # Let these tests disabled yet as the fix is not obvious
17 #self.assertEqual(heads['branch1'].manifest().keys(), ['b'])
18 #self.assertEqual(heads['branch2'].manifest().keys(), ['a', 'b'])
19
20 def test_unrelatedbranch_stupid(self):
21 self.test_unrelatedbranch(True)
22
23 def suite():
24 all = [unittest.TestLoader().loadTestsFromTestCase(TestFetchBranches),
25 ]
26 return unittest.TestSuite(all)