/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/test_transform.py

Changed tree root parent to ROOT_PARENT

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
from bzrlib.tests import TestCaseInTempDir
2
2
from bzrlib.branch import Branch
3
 
from bzrlib.transform import TreeTransform
 
3
from bzrlib.transform import TreeTransform, ROOT_PARENT
4
4
from bzrlib.errors import DuplicateKey, MalformedTransform, NoSuchFile
5
5
from bzrlib.osutils import file_kind
6
6
import os
12
12
        transform = TreeTransform(wt)
13
13
        try:
14
14
            root = transform.get_id_tree(wt.get_root_id())
15
 
            self.assertIs(transform.get_tree_parent(root), None)
 
15
            self.assertIs(transform.get_tree_parent(root), ROOT_PARENT)
16
16
            imaginary_id = transform.get_tree_path_id('imaginary')
17
17
            self.assertEqual(transform.get_tree_parent(imaginary_id), root)
18
18
            self.assertEqual(transform.final_kind(root), 'directory')
27
27
                              'my_pretties', trans_id)
28
28
            self.assertEqual(transform.final_file_id(trans_id), 'my_pretties')
29
29
            self.assertEqual(transform.final_parent(trans_id), root)
30
 
            self.assertIs(transform.final_parent(root), None)
 
30
            self.assertIs(transform.final_parent(root), ROOT_PARENT)
 
31
            self.assertIs(transform.get_tree_parent(root), ROOT_PARENT)
31
32
            oz_id = transform.create_path('oz', root)
32
33
            transform.create_directory(oz_id)
33
34
            transform.version_file('ozzie', oz_id)