~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-06-28 19:12:10 UTC
  • mfrom: (5967.7.4 rm-magic-methods)
  • Revision ID: pqm@pqm.ubuntu.com-20110628191210-bwblsxn26kyu3swl
(mbp) remove __contains__ methods from inventory and dict (Martin Pool)

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