/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 bzrlib/tests/test_hooks.py

  • Committer: Daniel Watkins
  • Date: 2008-03-08 23:25:23 UTC
  • mto: (3394.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 3395.
  • Revision ID: d.m.watkins@warwick.ac.uk-20080308232523-ymi4ju5jjdqypptr
Added to tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
 
43
43
    def test_install_named_hook_raises_unknown_hook(self):
44
44
        hooks = Hooks()
 
45
        hooks['set_rh'] = []
45
46
        self.assertRaises(UnknownHook, hooks.install_named_hook, 'silly',
46
47
                          None, "")
47
48
 
53
54
 
54
55
    def test_install_named_hook_and_retrieve_name(self):
55
56
        hooks = Hooks()
 
57
        hooks['set_rh'] = []
56
58
        hooks.install_named_hook('set_rh', None, "demo")
57
59
        self.assertEqual("demo", hooks.get_hook_name(None))
58
60