def test_list_port_group_sort(self): """List port_pair_group: --sort-key name --sort-key id --sort-key asc --sort-key desc """ resources = "port_pair_groups" cmd = pg.PortPairGroupList(test_cli20.MyApp(sys.stdout), None) self._test_list_resources(resources, cmd, sort_key=["name", "id"], sort_dir=["asc", "desc"])
def test_list_port_pair_group_limit(self): """size (1000) limited list: port-pair-group -P.""" resources = "port_pair_groups" cmd = pg.PortPairGroupList(test_cli20.MyApp(sys.stdout), None) self._test_list_resources(resources, cmd, page_size=1000)
def test_list_port_pair_group(self): """List port_pair_group.""" resources = 'port_pair_groups' cmd = pg.PortPairGroupList(test_cli20.MyApp(sys.stdout), None) self._test_list_resources(resources, cmd, True)