def METHOD_NAME(self):
    parser = argparse.ArgumentParser()
    output = [
        u'%s [options] COMMAND' % (parser.prog if parser.prog in ["dnf", "yum"] else "dnf"),
        u'',
        u'List of Main Commands:',
        u'',
        u'test-cmd                  summary',
        u'',
        u'List of Plugin Commands:',
        u'',
        u'test-cmd2                 summary2',
        u'']
    cmd = MyTestCommand(self.cli)
    self._register_command(cmd)
    self.parser.add_commands(self.cli_commands, "main")
    cmd2 = MyTestCommand2(self.cli)
    self._register_command(cmd2)
    self.parser.add_commands(self.cli_commands, "plugin")
    self.assertEqual(len(self.parser._cmd_usage.keys()), 2)
    usage = self.parser.get_usage().split('\n')
    self.assertEqual(usage, output)