~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/test_ancestry.py

  • Committer: Aaron Bentley
  • Date: 2005-11-17 05:14:54 UTC
  • mto: (1185.65.14 storage)
  • mto: This revision was merged to the branch mainline in revision 1550.
  • Revision ID: aaron.bentley@utoronto.ca-20051117051454-e9ac1dd13766b978
Moved get_ancestry to RevisionStorage

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
                 allow_pointless=True,
39
39
                 rev_id='tester@foo--2')
40
40
 
41
 
        ancs = b.get_ancestry('tester@foo--2')
 
41
        ancs = b.storage.get_ancestry('tester@foo--2')
42
42
        self.assertEqual([None, 'tester@foo--1', 'tester@foo--2'], ancs)
43
43
        self.assertEqual([None, 'tester@foo--1'], 
44
 
                         b.get_ancestry('tester@foo--1'))
 
44
                         b.storage.get_ancestry('tester@foo--1'))
45
45
 
46
46
    def test_none_is_always_an_ancestor(self):
47
47
        b = Branch.initialize('.')