13
13
# You should have received a copy of the GNU General Public License
14
14
# along with this program; if not, write to the Free Software
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
17
"""Tests for commands related to hooks"""
19
19
from bzrlib.branch import Branch
20
20
from bzrlib.tests import TestCaseWithTransport
23
25
class TestHooks(TestCaseWithTransport):
25
27
def _check_hooks_output(self, command_output, hooks):
26
28
for hook_type in Branch.hooks:
27
29
s = "\n ".join(hooks.get(hook_type, ["<no hooks installed>"]))
30
32
def test_hooks_with_no_hooks(self):