~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_join.py

  • Committer: Martin Pool
  • Date: 2011-06-14 02:21:41 UTC
  • mto: This revision was merged to the branch mainline in revision 6001.
  • Revision ID: mbp@canonical.com-20110614022141-18hmm7s0iw3utcbj
Deprecate __contains__ on Tree and Inventory

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
        sub_tree.lock_read()
75
75
        self.addCleanup(sub_tree.unlock)
76
76
        self.assertEqual('file1-id', sub_tree.path2id('file1'))
77
 
        self.assertTrue('file1-id' in sub_tree)
 
77
        self.assertTrue(sub_tree.has_id('file1-id'))
78
78
        self.assertEqual('subtree-root-id', sub_tree.path2id(''))
79
79
        self.assertEqual('', sub_tree.id2path('subtree-root-id'))
80
80
        self.assertIs(None, base_tree.path2id('subtree/file1'))
81
81
        base_tree.lock_read()
82
82
        self.addCleanup(base_tree.unlock)
83
 
        self.assertTrue('file1-id' not in base_tree)
 
83
        self.assertFalse(base_tree.has_id('file1-id'))
84
84
        self.assertEqual('subtree-root-id', base_tree.path2id('subtree'))
85
85
        self.assertEqual('subtree', base_tree.id2path('subtree-root-id'))
86
86
 
95
95
                                retcode=3)
96
96
        self.assertContainsRe(err, r"Can't join trees")
97
97
        self.assertContainsRe(err, r"use bzr upgrade")
98
 
 
99