/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/blackbox/test_switch.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 18:10:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521181028-zn04pdfw0od9hfj3
Rename brzlib => breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
import os
22
22
 
23
 
from brzlib.controldir import ControlDir
24
 
from brzlib import (
 
23
from breezy.controldir import ControlDir
 
24
from breezy import (
25
25
    osutils,
26
26
    urlutils,
27
27
    branch,
28
28
    )
29
 
from brzlib.workingtree import WorkingTree
30
 
from brzlib.tests import (
 
29
from breezy.workingtree import WorkingTree
 
30
from breezy.tests import (
31
31
    TestCaseWithTransport,
32
32
    script,
33
33
    )
34
 
from brzlib.tests.features import UnicodeFilenameFeature
35
 
from brzlib.directory_service import directories
 
34
from breezy.tests.features import UnicodeFilenameFeature
 
35
from breezy.directory_service import directories
36
36
 
37
 
from brzlib.tests.matchers import ContainsNoVfsCalls
 
37
from breezy.tests.matchers import ContainsNoVfsCalls
38
38
 
39
39
 
40
40
class TestSwitch(TestCaseWithTransport):
355
355
        self.assertEndsWith(tree.branch.base, 'foo-branch2/')
356
356
 
357
357
    def test_switch_with_post_switch_hook(self):
358
 
        from brzlib import branch as _mod_branch
 
358
        from breezy import branch as _mod_branch
359
359
        calls = []
360
360
        _mod_branch.Branch.hooks.install_named_hook('post_switch',
361
361
            calls.append, None)
368
368
        self.assertLength(1, calls)
369
369
 
370
370
    def test_switch_lightweight_co_with_post_switch_hook(self):
371
 
        from brzlib import branch as _mod_branch
 
371
        from breezy import branch as _mod_branch
372
372
        calls = []
373
373
        _mod_branch.Branch.hooks.install_named_hook('post_switch',
374
374
            calls.append, None)