~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/workingtree_implementations/test_add_reference.py

  • Committer: Aaron Bentley
  • Date: 2006-12-11 05:27:48 UTC
  • mto: (2255.6.1 dirstate)
  • mto: This revision was merged to the branch mainline in revision 2322.
  • Revision ID: aaron.bentley@utoronto.ca-20061211052748-672fjh70mzze3qkh
Ensure added references are serialized properly, beef up Workingtreee3

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
            assert tree.__class__ in (workingtree.WorkingTree2, 
39
39
                                      workingtree.WorkingTree3)
40
40
            raise tests.TestSkipped('Tree format does not support references')
 
41
        tree = workingtree.WorkingTree.open('tree')
41
42
        self.assertEqual(tree.path2id('sub-tree'), 'sub-tree-root-id')
42
43
        self.assertEqual(tree.inventory['sub-tree-root-id'].kind, 
43
44
                         'tree-reference')