Rev 2950: Comment from Martin: Use 'make_tree_*' not 'get_tree_*' in http://bzr.arbash-meinel.com/branches/bzr/0.92-dev/tree_root_id
John Arbash Meinel
john at arbash-meinel.com
Tue Nov 13 16:22:14 GMT 2007
At http://bzr.arbash-meinel.com/branches/bzr/0.92-dev/tree_root_id
------------------------------------------------------------
revno: 2950
revision-id:john at arbash-meinel.com-20071113160520-k3govxcdlfursew8
parent: john at arbash-meinel.com-20071026191848-kn2zemp87fo5cavb
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: tree_root_id
timestamp: Tue 2007-11-13 10:05:20 -0600
message:
Comment from Martin: Use 'make_tree_*' not 'get_tree_*'
modified:
bzrlib/tests/tree_implementations/test_get_root_id.py test_get_root_id.py-20071026191509-a4conhr43f194avv-1
-------------- next part --------------
=== modified file 'bzrlib/tests/tree_implementations/test_get_root_id.py'
--- a/bzrlib/tests/tree_implementations/test_get_root_id.py 2007-10-26 19:15:29 +0000
+++ b/bzrlib/tests/tree_implementations/test_get_root_id.py 2007-11-13 16:05:20 +0000
@@ -21,23 +21,23 @@
class TestGetRootID(TestCaseWithTree):
- def get_tree_with_default_root_id(self):
+ def make_tree_with_default_root_id(self):
tree = self.make_branch_and_tree('tree')
return self._convert_tree(tree)
- def get_tree_with_fixed_root_id(self):
+ def make_tree_with_fixed_root_id(self):
tree = self.make_branch_and_tree('tree')
tree.set_root_id('custom-tree-root-id')
return self._convert_tree(tree)
def test_get_root_id_default(self):
- tree = self.get_tree_with_default_root_id()
+ tree = self.make_tree_with_default_root_id()
tree.lock_read()
self.addCleanup(tree.unlock)
self.assertIsNot(None, tree.get_root_id())
def test_get_root_id_fixed(self):
- tree = self.get_tree_with_fixed_root_id()
+ tree = self.make_tree_with_fixed_root_id()
tree.lock_read()
self.addCleanup(tree.unlock)
self.assertEqual('custom-tree-root-id', tree.get_root_id())
More information about the bazaar-commits
mailing list