def test_fields_not_options(self):
        # Create a resource with a field that is an option and another
        # field that isn't.
        class NoOptionResource(models.Resource):
            endpoint = '/nor/'

            yes = models.Field()
            no = models.Field(is_option=False)

        # Make the resource into a command, and get a reasonably-arbitrary
        # subcommand.
        cmd = NoOptionResource().as_command().get_command(None, 'list')

        # Establish that "yes" is an option on the command and "no" is not.
        self.assertTrue(any([o.name == 'yes' for o in cmd.params]))
        self.assertFalse(any([o.name == 'no' for o in cmd.params]))
Test rest arguments
dataset/ETHPy150Open ansible/tower-cli/tests/test_models_base.py/SubcommandTests.test_fields_not_options--crossover with--dataset/ETHPy150Open SpriteLink/NIPAP/nipap-cli/tests/cli-test.py/CliCheck.test_rest_argument