def test_list_policy_rules_sort(self):
     """grouppolicy-policy-rule-list --sort-key name --sort-key id
     --sort-key asc --sort-key desc
     """
     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"])
 def test_list_policy_rules_pagination(self):
     """grouppolicy-policy-rule-list."""
     resources = 'policy_rules'
     cmd = gbp.ListPolicyRule(test_cli20.MyApp(sys.stdout), None)
     self._test_list_resources_with_pagination(resources, cmd)
 def test_list_policy_rules_limit(self):
     """grouppolicy-policy-rule-list -P."""
     resources = 'policy_rules'
     cmd = gbp.ListPolicyRule(test_cli20.MyApp(sys.stdout), None)
     self._test_list_resources(resources, cmd, page_size=1000)