~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Martin
  • Date: 2011-05-21 16:29:38 UTC
  • mto: This revision was merged to the branch mainline in revision 5907.
  • Revision ID: gzlist@googlemail.com-20110521162938-1vrw3hp0197l3vrl
Add tests for non-ascii conflict serialisation

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(sub_tree.has_id('file1-id'))
 
77
        self.assertTrue('file1-id' in sub_tree)
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.assertFalse(base_tree.has_id('file1-id'))
 
83
        self.assertTrue('file1-id' not in base_tree)
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