~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Jelmer Vernooij
  • Date: 2011-05-10 07:46:15 UTC
  • mfrom: (5844 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5845.
  • Revision ID: jelmer@samba.org-20110510074615-eptod049ndjxc4i7
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
        tree.lock_write()
54
54
        try:
55
55
            self.assertEqual(tree.path2id('sub-tree'), 'sub-tree-root-id')
56
 
            self.assertEqual(tree.inventory['sub-tree-root-id'].kind,
57
 
                             'tree-reference')
 
56
            self.assertEqual(tree.kind('sub-tree-root-id'), 'tree-reference')
58
57
            tree.commit('commit reference')
59
58
            basis = tree.basis_tree()
60
59
            basis.lock_read()