# Path: tenable_io/api/models.py
# class FolderList(BaseModel):
# 
#     def __init__(
#             self,
#             folders=None,
#     ):
#         self._folders = None
# 
#         self.folders = folders
# 
#     @property
#     def folders(self):
#         return self._folders
# 
#     @folders.setter
#     @BaseModel._model_list(Folder)
#     def folders(self, folders):
#         self._folders = folders


import pytest
from tenable_io.api.models import FolderList



@pytest.mark.vcr()
def test_folders_create(new_folder):
    assert isinstance(new_folder, int), u'The `create` method did not return type `int`.'


@pytest.mark.vcr()
def test_folders_list(client):
    folder_list = client.folders_api.list()

# Path: tenable_io/api/models.py
# class FolderList(BaseModel):
# 
#     def __init__(
#             self,
#             folders=None,
#     ):
#         self._folders = None
# 
#         self.folders = folders
# 
#     @property
#     def folders(self):
#         return self._folders
# 
#     @folders.setter
#     @BaseModel._model_list(Folder)
#     def folders(self, folders):
#         self._folders = folders


# Path: tests/integration/api/test_folders.py
import pytest
from tenable_io.api.models import FolderList




@pytest.mark.vcr()
def test_folders_create(new_folder):
    assert isinstance(new_folder, int), u'The `create` method did not return type `int`.'


@pytest.mark.vcr()
def test_folders_list(client):
    folder_list = client.folders_api.list()

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