~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_inventory/basics.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:
35
35
 
36
36
from bzrlib.tests.per_inventory import TestCaseWithInventory
37
37
 
 
38
from bzrlib.symbol_versioning import (
 
39
    deprecated_in,
 
40
    )
38
41
 
39
42
 
40
43
class TestInventory(TestCaseWithInventory):
149
152
        inv = self.inv_to_test_inv(inv)
150
153
        self.assertEqual(inv.path2id('src'), 'src-id')
151
154
        self.assertEqual(inv.path2id('src/bye.c'), 'bye-id')
152
 
        self.assertTrue('src-id' in inv)
 
155
        self.assertTrue(
 
156
            self.applyDeprecated(
 
157
                deprecated_in((2, 4, 0)),
 
158
                inv.__contains__, 'src-id'))
153
159
 
154
160
    def test_non_directory_children(self):
155
161
        """Test path2id when a parent directory has no children"""