

def test_list_policy_rules_sort(self):
    'grouppolicy-policy-rule-list --sort-key name --sort-key id\n        --sort-key asc --sort-key desc\n        '
    resources = 'policy_rules'
    cmd = gbp.ListPolicyRule(test_cli20.MyApp(sys.stdout), None)
    self._test_list_resources(resources, cmd, sort_key=['name', 'id'], sort_dir=['asc', 'desc'])

dataset/ETHPy150Open openstack/python-group-based-policy-client/gbpclient/tests/unit/test_cli20_policyrule.py CLITestV20PolicyRuleJSON.test_list_policy_rules_sort/original