~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_hooks.py

  • Committer: Jelmer Vernooij
  • Date: 2011-03-30 11:50:40 UTC
  • mto: (5622.4.1 uninstall-hook)
  • mto: This revision was merged to the branch mainline in revision 5747.
  • Revision ID: jelmer@samba.org-20110330115040-7n9t3p9up061e13g
Revert some unnecessary changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
228
228
                "The factory(%r) for %r is not callable" % (factory, key))
229
229
            obj = known_hooks_key_to_object(key)
230
230
            self.assertIsInstance(obj, Hooks)
231
 
            new_hooks = factory(key[0], key[1])
 
231
            new_hooks = factory()
232
232
            self.assertIsInstance(obj, Hooks)
233
233
            self.assertEqual(type(obj), type(new_hooks))
234
234
            self.assertEqual("No hook name", new_hooks.get_hook_name(None))