/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

Merge bzr.dev r3466

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.