def _get_test_args(self, *args, **kwargs):
        cli_args = []
        api_args = {}
        for arg in args:
            cli_args.append('--' + arg)
            if not args_conf[arg][1]:
                pass
            elif arg in kwargs:
                cli_args.append(str(kwargs[arg]))
            else:
                cli_args.append(args_conf[arg][1])

            if arg in kwargs:
                api_args[args_conf[arg][0]] = kwargs[arg]
            else:
                api_args[args_conf[arg][0]] = args_conf[arg][2]

        return cli_args, api_args
Function for generically building testing arguments
dataset/ETHPy150Open openstack/python-neutronclient/neutronclient/tests/unit/lb/v2/test_cli20_l7policy.py/CLITestV20LbL7PolicyJSON._get_test_args