def test_simple(self): help = HelpCommand() options = OptionsContext() for option in HelpCommand.common_options: options.add_option(option) context = CmdContext([], options, None, None) help.run(context)
def test_command(self): help = HelpCommand() options = OptionsContext() for option in HelpCommand.common_options: options.add_option(option) context = CmdContext(["configure"], options, None, None) context.options_registry = self.options_registry help.run(context)
def test_simple(self): help = HelpCommand() options = OptionsContext() for option in HelpCommand.common_options: options.add_option(option) global_context = GlobalContext(self.registry, None, None, None) context = HelpContext(global_context, [], options, None, None) help.run(context)