Rev 5024: Fix imports in per_branch/test_create_clone.py. in file:///home/vila/src/bzr/cleanup/test-imports/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Mon Feb 8 08:44:42 GMT 2010
At file:///home/vila/src/bzr/cleanup/test-imports/
------------------------------------------------------------
revno: 5024
revision-id: v.ladeuil+lp at free.fr-20100208084442-zi8oe4x5o3lhxoxz
parent: v.ladeuil+lp at free.fr-20100208084301-v3foyd288dg255ic
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: test-imports
timestamp: Mon 2010-02-08 09:44:42 +0100
message:
Fix imports in per_branch/test_create_clone.py.
-------------- next part --------------
=== modified file 'bzrlib/tests/per_branch/test_create_clone.py'
--- a/bzrlib/tests/per_branch/test_create_clone.py 2009-08-20 04:09:58 +0000
+++ b/bzrlib/tests/per_branch/test_create_clone.py 2010-02-08 08:44:42 +0000
@@ -16,14 +16,16 @@
"""Tests for branch.create_clone behaviour."""
-from bzrlib.branch import Branch
-from bzrlib import errors
-from bzrlib import remote
-from bzrlib import tests
-from bzrlib.tests.per_branch.test_branch import TestCaseWithBranch
-
-
-class TestCreateClone(TestCaseWithBranch):
+from bzrlib import (
+ branch,
+ errors,
+ remote,
+ tests,
+ )
+from bzrlib.tests import per_branch
+
+
+class TestCreateClone(per_branch.TestCaseWithBranch):
def test_create_clone_on_transport_missing_parent_dir(self):
tree = self.make_branch_and_tree('source')
@@ -129,8 +131,8 @@
source = tree.branch
target_transport = self.get_transport('target')
self.hook_calls = []
- Branch.hooks.install_named_hook("pre_change_branch_tip",
- self.assertBranchHookBranchIsStacked, None)
+ branch.Branch.hooks.install_named_hook(
+ 'pre_change_branch_tip', self.assertBranchHookBranchIsStacked, None)
result = tree.branch.create_clone_on_transport(target_transport,
stacked_on=trunk.base)
self.assertEqual(revid, result.last_revision())
More information about the bazaar-commits
mailing list