

def test_create_policy_rule_with_mandatory_params(self):
    'grouppolicy-policy-rule-create with all mandatory params.'
    resource = 'policy_rule'
    cmd = gbp.CreatePolicyRule(test_cli20.MyApp(sys.stdout), None)
    name = 'my-name'
    tenant_id = 'my-tenant'
    my_id = 'my-id'
    args = ['--tenant-id', tenant_id, position_values]
    position_names = ['name']
    position_values = [name]
    self._test_create_resource(resource, cmd, name, my_id, args, position_names, position_values, tenant_id=tenant_id)

dataset/ETHPy150Open openstack/python-group-based-policy-client/gbpclient/tests/unit/test_cli20_policyrule.py CLITestV20PolicyRuleJSON.test_create_policy_rule_with_mandatory_params/VarMisuse@53/112 `name`->`position_values`