# Path: tenable_io/api/models.py
# class Filter(BaseModel):
# 
#     def __init__(
#             self,
#             operators=None,
#             control=None,
#             name=None,
#             readable_name=None
#     ):
#         self.operators = operators
#         self.control = control
#         self.name = name
#         self.readable_name = readable_name
# 
# class Filters(BaseModel):
# 
#     def __init__(
#             self,
#             filters=None,
#             sort=None,
#             wildcard_fields=None
#     ):
#         self._filters = None
#         self.filters = filters
#         self.sort = sort
#         self.wildcard_fields = wildcard_fields
# 
#     @property
#     def filters(self):
#         return self._filters
# 
#     @filters.setter
#     @BaseModel._model_list(Filter)
#     def filters(self, filters):
#         self._filters = filters


import pytest
from tenable_io.api.models import Filter, Filters



@pytest.mark.vcr()
def test_agents_filters(client):
    agents_filters = client.filters_api.agents_filters()

    assert isinstance(agents_filters, Filters), u'The `agents_filters` method return did not return type `Filters`.'
    for f in agents_filters.filters:

# Path: tenable_io/api/models.py
# class Filter(BaseModel):
# 
#     def __init__(
#             self,
#             operators=None,
#             control=None,
#             name=None,
#             readable_name=None
#     ):
#         self.operators = operators
#         self.control = control
#         self.name = name
#         self.readable_name = readable_name
# 
# class Filters(BaseModel):
# 
#     def __init__(
#             self,
#             filters=None,
#             sort=None,
#             wildcard_fields=None
#     ):
#         self._filters = None
#         self.filters = filters
#         self.sort = sort
#         self.wildcard_fields = wildcard_fields
# 
#     @property
#     def filters(self):
#         return self._filters
# 
#     @filters.setter
#     @BaseModel._model_list(Filter)
#     def filters(self, filters):
#         self._filters = filters


# Path: tests/integration/api/test_filters.py
import pytest
from tenable_io.api.models import Filter, Filters




@pytest.mark.vcr()
def test_agents_filters(client):
    agents_filters = client.filters_api.agents_filters()

    assert isinstance(agents_filters, Filters), u'The `agents_filters` method return did not return type `Filters`.'
    for f in agents_filters.filters:

        assert isinstance(f, Filter), u'filters property should contain `Filter` type.'