~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_revisiontree.py

  • Committer: Alexander Belchenko
  • Date: 2006-07-31 16:12:57 UTC
  • mto: (1711.2.111 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1906.
  • Revision ID: bialix@ukr.net-20060731161257-91a231523255332c
new official bzr.ico

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
"""Tests for the RevisionTree class."""
19
19
 
20
 
from bzrlib import (
21
 
    revision,
22
 
    )
23
20
import bzrlib
24
21
from bzrlib.tests import TestCaseWithTransport
25
22
from bzrlib.tree import RevisionTree
50
47
            [self.rev_id],
51
48
            self.t.branch.repository.revision_tree(revid_2).get_parent_ids())
52
49
        # TODO commit a merge and check it is reported correctly.
53
 
 
54
 
        # the parents for a revision_tree(None) are []:
55
 
        self.assertEqual([],
56
 
            self.t.branch.repository.revision_tree(None).get_parent_ids())
57
 
 
58
 
    def test_empty_no_root(self):
59
 
        null_tree = self.t.branch.repository.revision_tree(
60
 
            revision.NULL_REVISION)
61
 
        self.assertIs(None, null_tree.inventory.root)