# Path: tenable_io/api/agent_groups.py
# class AgentGroupSaveRequest(BaseRequest):
# 
#     def __init__(
#             self,
#             name
#     ):
#         self.name = name
# 
# Path: tenable_io/api/models.py
# class AgentGroup(BaseModel):
# 
#     def __init__(
#             self,
#             id=None,
#             name=None,
#             owner_id=None,
#             owner=None,
#             owner_name=None,
#             owner_uuid=None,
#             shared=None,
#             user_permissions=None,
#             creation_date=None,
#             last_modification_date=None,
#             timestamp=None,
#             agents=None,
#             agents_count=None,
#             uuid=None,
#             pagination=None
#     ):
#         self._agents = agents
#         self._pagination = None
#         self.id = id
#         self.name = name
#         self.owner_id = owner_id
#         self.owner = owner
#         self.owner_name = owner_name
#         self.owner_uuid = owner_uuid
#         self.shared = shared
#         self.user_permissions = user_permissions
#         self.creation_date = creation_date
#         self.last_modification_date = last_modification_date
#         self.timestamp = timestamp
#         self.agents = agents
#         self.agents_count = agents_count
#         self.uuid = uuid
#         self.pagination = pagination
# 
#     @property
#     def agents(self):
#         return self._agents
# 
#     @agents.setter
#     @BaseModel._model_list(Agent)
#     def agents(self, agents):
#         self._agents = agents
# 
#     @property
#     def pagination(self):
#         return self._pagination
# 
#     @pagination.setter
#     @BaseModel._model(FilterPagination)
#     def pagination(self, pagination):
#         self._pagination = pagination
# 
# class AgentGroupList(BaseModel):
# 
#     def __init__(
#             self,
#             groups=None
#     ):
#         self._groups = None
#         self.groups = groups
# 
#     @property
#     def groups(self):
#         return self._groups
# 
#     @groups.setter
#     @BaseModel._model_list(AgentGroup)
#     def groups(self, groups):
#         self._groups = groups
# 
# class AgentList(BaseModel):
# 
#     def __init__(
#             self,
#             agents=None,
#             pagination=None
#     ):
#         self._agents = None
#         self.agents = agents
#         self._pagination = None
#         self.pagination = pagination
# 
#     @property
#     def agents(self):
#         return self._agents
# 
#     @agents.setter
#     @BaseModel._model_list(Agent)
#     def agents(self, agents):
#         self._agents = agents
# 
#     @property
#     def pagination(self):
#         return self._pagination
# 
#     @pagination.setter
#     @BaseModel._model(FilterPagination)
#     def pagination(self, pagination):
#         self._pagination = pagination


import pytest
from random import randint
from tenable_io.api.agent_groups import AgentGroupSaveRequest
from tenable_io.api.models import AgentGroup, AgentGroupList, AgentList




@pytest.mark.vcr()
def test_agent_groups_create(new_agent_group):
    assert new_agent_group, u'The `create` method was not successful.'


@pytest.mark.vcr()
def test_agent_groups_list(client):
    group_list = client.agent_groups_api.list()

# Path: tenable_io/api/agent_groups.py
# class AgentGroupSaveRequest(BaseRequest):
# 
#     def __init__(
#             self,
#             name
#     ):
#         self.name = name
# 
# Path: tenable_io/api/models.py
# class AgentGroup(BaseModel):
# 
#     def __init__(
#             self,
#             id=None,
#             name=None,
#             owner_id=None,
#             owner=None,
#             owner_name=None,
#             owner_uuid=None,
#             shared=None,
#             user_permissions=None,
#             creation_date=None,
#             last_modification_date=None,
#             timestamp=None,
#             agents=None,
#             agents_count=None,
#             uuid=None,
#             pagination=None
#     ):
#         self._agents = agents
#         self._pagination = None
#         self.id = id
#         self.name = name
#         self.owner_id = owner_id
#         self.owner = owner
#         self.owner_name = owner_name
#         self.owner_uuid = owner_uuid
#         self.shared = shared
#         self.user_permissions = user_permissions
#         self.creation_date = creation_date
#         self.last_modification_date = last_modification_date
#         self.timestamp = timestamp
#         self.agents = agents
#         self.agents_count = agents_count
#         self.uuid = uuid
#         self.pagination = pagination
# 
#     @property
#     def agents(self):
#         return self._agents
# 
#     @agents.setter
#     @BaseModel._model_list(Agent)
#     def agents(self, agents):
#         self._agents = agents
# 
#     @property
#     def pagination(self):
#         return self._pagination
# 
#     @pagination.setter
#     @BaseModel._model(FilterPagination)
#     def pagination(self, pagination):
#         self._pagination = pagination
# 
# class AgentGroupList(BaseModel):
# 
#     def __init__(
#             self,
#             groups=None
#     ):
#         self._groups = None
#         self.groups = groups
# 
#     @property
#     def groups(self):
#         return self._groups
# 
#     @groups.setter
#     @BaseModel._model_list(AgentGroup)
#     def groups(self, groups):
#         self._groups = groups
# 
# class AgentList(BaseModel):
# 
#     def __init__(
#             self,
#             agents=None,
#             pagination=None
#     ):
#         self._agents = None
#         self.agents = agents
#         self._pagination = None
#         self.pagination = pagination
# 
#     @property
#     def agents(self):
#         return self._agents
# 
#     @agents.setter
#     @BaseModel._model_list(Agent)
#     def agents(self, agents):
#         self._agents = agents
# 
#     @property
#     def pagination(self):
#         return self._pagination
# 
#     @pagination.setter
#     @BaseModel._model(FilterPagination)
#     def pagination(self, pagination):
#         self._pagination = pagination


# Path: tests/integration/api/test_agent_groups.py
import pytest
from random import randint
from tenable_io.api.agent_groups import AgentGroupSaveRequest
from tenable_io.api.models import AgentGroup, AgentGroupList, AgentList





@pytest.mark.vcr()
def test_agent_groups_create(new_agent_group):
    assert new_agent_group, u'The `create` method was not successful.'


@pytest.mark.vcr()
def test_agent_groups_list(client):
    group_list = client.agent_groups_api.list()

    assert isinstance(group_list, AgentGroupList), u'The `list` method did not return type `AgentGroupList`.'