def test_get_command(self):
        list_command = self.command.get_command(None, 'list')

        # Ensure that this is a click command.
        self.assertIsInstance(list_command, click.core.Command)

        # Ensure that this command has an option corresponding to the
        # "name" unique field.
        self.assertEqual(list_command.params[0].name, 'name')
        self.assertEqual(list_command.params[0].opts, ['--name'])
Establish that the `get_command` method returns the appropriate
dataset/ETHPy150Open ansible/tower-cli/tests/test_models_base.py/SubcommandTests.test_get_command