

def test_update_policy_rule(self):
    'grouppolicy-policy-rule-update  myid --name myname --tags a b.'
    resource = 'policy_rule'
    cmd = gbp.UpdatePolicyRule(test_cli20.MyApp(sys.stdout), None)
    self._test_update_resource(resource, self, 'myid', ['myid', '--name', 'myname', '--tags', 'a', 'b'], {
        'name': 'myname',
        'tags': ['a', 'b'],
    })

dataset/ETHPy150Open openstack/python-group-based-policy-client/gbpclient/tests/unit/test_cli20_policyrule.py CLITestV20PolicyRuleJSON.test_update_policy_rule/VarMisuse@40/82 `cmd`->`self`