211
211
commands.Command.hooks.install_named_hook(
212
212
"extend_command", hook_calls.append, None)
213
213
# create a command, should not fire
217
216
self.assertEqual([], hook_calls)
219
218
# register the command class, should not fire
222
221
self.assertEqual([], hook_calls)
223
222
# and ask for the object, should fire
224
223
cmd = commands.get_cmd_object('test-extend-command-hook')