/breezy/unstable

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/unstable

« back to all changes in this revision

Viewing changes to breezy/tests/blackbox/test_hooks.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-24 01:39:33 UTC
  • mfrom: (3815.3776.6)
  • Revision ID: jelmer@jelmer.uk-20170524013933-ir4y4tqtrsiz2ka2
New upstream snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Tests for commands related to hooks"""
18
18
 
19
 
from bzrlib.branch import Branch
20
 
from bzrlib.tests import TestCaseWithTransport
 
19
from breezy.branch import Branch
 
20
from breezy.tests import TestCaseWithTransport
21
21
 
22
22
def _foo_hook():
23
23
    pass
58
58
        self.make_branch('.')
59
59
        def foo(): return
60
60
        Branch.hooks.install_named_hook_lazy('post_push',
61
 
            'bzrlib.tests.blackbox.test_hooks',
 
61
            'breezy.tests.blackbox.test_hooks',
62
62
            '_foo_hook',
63
63
            None)
64
64
        out, err = self.run_bzr('hooks')
68
68
        self.make_branch('.')
69
69
        def foo(): return
70
70
        Branch.hooks.install_named_hook_lazy('post_push',
71
 
            'bzrlib.tests.blackbox.test_hooks',
 
71
            'breezy.tests.blackbox.test_hooks',
72
72
            '_foo_hook',
73
73
            'hook has a name')
74
74
        out, err = self.run_bzr('hooks')