/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 breezy/tests/per_tree/test_get_root_id.py

  • Committer: Jelmer Vernooij
  • Date: 2019-08-11 13:21:03 UTC
  • mfrom: (7379 work)
  • mto: This revision was merged to the branch mainline in revision 7388.
  • Revision ID: jelmer@jelmer.uk-20190811132103-u3ne03yf37c1h57n
merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
 
"""Tests for Tree.get_root_id()"""
 
17
"""Tests for Tree.path2id('')"""
18
18
 
19
19
from breezy.tests.per_tree import TestCaseWithTree
20
20
 
40
40
    def test_get_root_id_default(self):
41
41
        tree = self.make_tree_with_default_root_id()
42
42
        with tree.lock_read():
43
 
            self.assertIsNot(None, tree.get_root_id())
 
43
            self.assertIsNot(None, tree.path2id(''))
44
44
 
45
45
    def test_get_root_id_fixed(self):
46
46
        tree = self.make_tree_with_fixed_root_id()
47
47
        with tree.lock_read():
48
 
            self.assertEqual(b'custom-tree-root-id', tree.get_root_id())
 
48
            self.assertEqual(b'custom-tree-root-id', tree.path2id(''))