~bzr/bzr/bzr.1.5

« back to all changes in this revision

Viewing changes to bzrlib/tests/workingtree_implementations/test_set_root_id.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-05-07 07:27:16 UTC
  • mfrom: (3408.2.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20080507072716-lr54bdt55km4feso
(mbp) Remove code deprecated prior to 1.1 and its tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
"""Tests for WorkingTree.set_root_id"""
18
18
 
19
19
from bzrlib import inventory
20
 
from bzrlib.symbol_versioning import zero_twelve
21
20
from bzrlib.tests.workingtree_implementations import TestCaseWithWorkingTree
22
21
 
23
22
 
24
23
class TestSetRootId(TestCaseWithWorkingTree):
25
24
 
26
 
    def test_set_None(self):
27
 
        # setting the root_id to None is equivalent to setting it
28
 
        # to inventory.ROOT_ID
29
 
        tree = self.make_branch_and_tree('a-tree')
30
 
        self.callDeprecated([
31
 
            'WorkingTree.set_root_id with fileid=None was deprecated in version'
32
 
            ' 0.12.'],
33
 
            tree.set_root_id, None)
34
 
        self.assertEqual(inventory.ROOT_ID, tree.get_root_id())
35
 
 
36
25
    def test_set_and_read_unicode(self):
37
26
        tree = self.make_branch_and_tree('a-tree')
38
27
        # setting the root id allows it to be read via get_root_id.