def METHOD_NAME(self):
    cmd = MyTestCommand(self.cli)
    self._register_command(cmd)
    self.parser.add_commands(self.cli_commands, "main")
    cmd = MyTestCommand(self.cli)
    self._register_command(cmd)
    self.parser.add_commands(self.cli_commands, "plugin")
    self.assertEqual(len(self.parser._cmd_usage.keys()), 1)
    self.assertEqual(self.parser._cmd_groups, set(['main']))