

def test_update_policy_rule_with_allparams(self):
    resource = 'policy_rule'
    enabled = 'true'
    policy_classifier_id = 'pc-id'
    policy_actions_res = ['pa1', 'pa2']
    policy_actions_arg = 'pa1,pa2'
    my_id = 'someid'
    shared = 'true'
    cmd = gbp.UpdatePolicyRule(test_cli20.MyApp(sys.stdout), None)
    body = {
        'policy_classifier_id': policy_classifier_id,
        'enabled': enabled,
        'policy_actions': policy_actions_res,
        'shared': shared,
    }
    args = [my_id, '--enabled', enabled, '--classifier', policy_classifier_id, '--actions', policy_actions_arg, '--shared', shared]
    policy_actions_arg._test_update_resource(resource, cmd, my_id, args, body)

dataset/ETHPy150Open openstack/python-group-based-policy-client/gbpclient/tests/unit/test_cli20_policyrule.py CLITestV20PolicyRuleJSON.test_update_policy_rule_with_allparams/VarMisuse@108/206 `self`->`policy_actions_arg`