# Path: tenable_io/api/target_groups.py
# class TargetListEditRequest(TargetGroupCreateRequest):
#     pass
# 
# Path: tenable_io/api/models.py
# class TargetGroup:
#     # Target Group Permissions
#     PERMISSION_NO_ACCESS = 0
#     PERMISSION_CAN_VIEW = 32
#     PERMISSION_CAN_SCAN = 64
# 
# class TargetGroupList(BaseModel):
# 
#     def __init__(
#             self,
#             target_groups=None,
#     ):
#         self._target_groups = None
#         self.target_groups = target_groups
# 
#     @property
#     def target_groups(self):
#         return self._target_groups
# 
#     @target_groups.setter
#     @BaseModel._model_list(TargetGroup)
#     def target_groups(self, target_groups):
#         self._target_groups = target_groups


import pytest
from tenable_io.api.target_groups import TargetListEditRequest
from tenable_io.api.models import TargetGroup, TargetGroupList



@pytest.mark.vcr()
def test_target_groups_create(new_target_group):
    assert isinstance(new_target_group, TargetGroup), u'The `create` method did not return type `TargetGroup`.'


@pytest.mark.vcr()
def test_target_groups_details(client, new_target_group):
    target_group = new_target_group
    details = client.target_groups_api.details(target_group.id)

# Path: tenable_io/api/target_groups.py
# class TargetListEditRequest(TargetGroupCreateRequest):
#     pass
# 
# Path: tenable_io/api/models.py
# class TargetGroup:
#     # Target Group Permissions
#     PERMISSION_NO_ACCESS = 0
#     PERMISSION_CAN_VIEW = 32
#     PERMISSION_CAN_SCAN = 64
# 
# class TargetGroupList(BaseModel):
# 
#     def __init__(
#             self,
#             target_groups=None,
#     ):
#         self._target_groups = None
#         self.target_groups = target_groups
# 
#     @property
#     def target_groups(self):
#         return self._target_groups
# 
#     @target_groups.setter
#     @BaseModel._model_list(TargetGroup)
#     def target_groups(self, target_groups):
#         self._target_groups = target_groups


# Path: tests/integration/api/test_target_groups.py
import pytest
from tenable_io.api.target_groups import TargetListEditRequest
from tenable_io.api.models import TargetGroup, TargetGroupList




@pytest.mark.vcr()
def test_target_groups_create(new_target_group):
    assert isinstance(new_target_group, TargetGroup), u'The `create` method did not return type `TargetGroup`.'


@pytest.mark.vcr()
def test_target_groups_details(client, new_target_group):
    target_group = new_target_group
    details = client.target_groups_api.details(target_group.id)

    assert isinstance(details, TargetGroup), u'The `details` method did not return type `TargetGroup`.'