# coding: utf-8

"""
    IncQuery Server Web API

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501

    The version of the OpenAPI document: placeHolderApiVersion
    Generated by: https://openapi-generator.tech
"""


from __future__ import absolute_import

import unittest
import datetime

import iqs_client
from iqs_client.models.list_dependent_elements_response import ListDependentElementsResponse  # noqa: E501
from iqs_client.rest import ApiException

class TestListDependentElementsResponse(unittest.TestCase):
    """ListDependentElementsResponse unit test stubs"""

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def make_instance(self, include_optional):
        """Test ListDependentElementsResponse
            include_option is a boolean, when False only required
            params are included, when True both required and
            optional params are included """
        # model = iqs_client.models.list_dependent_elements_response.ListDependentElementsResponse()  # noqa: E501
        if include_optional :
            return ListDependentElementsResponse(
                result_size = 1, 
                resource_statistics = iqs_client.models.impact_analysis_resource_statistics.ImpactAnalysisResourceStatistics(
                    results_filtered = False, 
                    number_of_resources = 1, 
                    number_of_filtered_resources = 1, ), 
                workspaces = [
                    iqs_client.models.workspace_with_dependent_elements.WorkspaceWithDependentElements(
                        workspace_id = '2394f5d1-1321-4f34-a373-cc1b159c7ebd', 
                        title = 'Uncategorized', 
                        resources = [
                            iqs_client.models.resource_with_dependent_elements.ResourceWithDependentElements(
                                resource_id = '3c4be8a2-eb9c-4de0-95ac-e51fc4c27e68', 
                                title = 'ICS-ALLQueries.MASTER', 
                                branches = [
                                    iqs_client.models.branch_with_dependent_elements.BranchWithDependentElements(
                                        branch_id = 'trunk', 
                                        title = '958bd4bb-a145-48bf-a1df-da10803b6233', 
                                        revisions = [
                                            null
                                            ], )
                                    ], )
                            ], )
                    ]
            )
        else :
            return ListDependentElementsResponse(
                result_size = 1,
                resource_statistics = iqs_client.models.impact_analysis_resource_statistics.ImpactAnalysisResourceStatistics(
                    results_filtered = False, 
                    number_of_resources = 1, 
                    number_of_filtered_resources = 1, ),
                workspaces = [
                    iqs_client.models.workspace_with_dependent_elements.WorkspaceWithDependentElements(
                        workspace_id = '2394f5d1-1321-4f34-a373-cc1b159c7ebd', 
                        title = 'Uncategorized', 
                        resources = [
                            iqs_client.models.resource_with_dependent_elements.ResourceWithDependentElements(
                                resource_id = '3c4be8a2-eb9c-4de0-95ac-e51fc4c27e68', 
                                title = 'ICS-ALLQueries.MASTER', 
                                branches = [
                                    iqs_client.models.branch_with_dependent_elements.BranchWithDependentElements(
                                        branch_id = 'trunk', 
                                        title = '958bd4bb-a145-48bf-a1df-da10803b6233', 
                                        revisions = [
                                            null
                                            ], )
                                    ], )
                            ], )
                    ],
        )

    def testListDependentElementsResponse(self):
        """Test ListDependentElementsResponse"""
        inst_req_only = self.make_instance(include_optional=False)
        inst_req_and_optional = self.make_instance(include_optional=True)


if __name__ == '__main__':
    unittest.main()
