示例#1
0
 def test_list_security_groups_sort(self):
     resources = "security_groups"
     cmd = securitygroup.ListSecurityGroup(
         test_cli20.MyApp(sys.stdout), None)
     self._test_list_resources(resources, cmd,
                               sort_key=["name", "id"],
                               sort_dir=["asc", "desc"])
 def test_list_security_groups_pagination(self):
     resources = "security_groups"
     cmd = securitygroup.ListSecurityGroup(test_cli20.MyApp(sys.stdout),
                                           None)
     self._test_list_resources_with_pagination(resources, cmd)
 def test_list_security_groups(self):
     resources = "security_groups"
     cmd = securitygroup.ListSecurityGroup(test_cli20.MyApp(sys.stdout),
                                           None)
     self._test_list_resources(resources, cmd, True)
 def test_list_security_groups_limit(self):
     resources = "security_groups"
     cmd = securitygroup.ListSecurityGroup(test_cli20.MyApp(sys.stdout),
                                           None)
     self._test_list_resources(resources, cmd, page_size=1000)