# 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: 0.19.0
    Generated by: https://openapi-generator.tech
"""


from __future__ import absolute_import

import unittest
import datetime

import iqs_client
from iqs_client.models.generic_validation_results import GenericValidationResults  # noqa: E501
from iqs_client.rest import ApiException

class TestGenericValidationResults(unittest.TestCase):
    """GenericValidationResults unit test stubs"""

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def make_instance(self, include_optional):
        """Test GenericValidationResults
            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.generic_validation_results.GenericValidationResults()  # noqa: E501
        if include_optional :
            return GenericValidationResults(
                compartment = {"compartmentURI":"mms-index:/orgs/iql/projects/PROJECT-d0c236d9-186a-485c-9c67-9e6693d1f0d8/refs/master/commits/bc1d4c28-f777-4f58-9df3-b856f39d928f"}, 
                diagnostics = iqs_client.models.validation_diagnostics.ValidationDiagnostics(
                    info = 0, 
                    debug = 0, 
                    warning = 0, 
                    error = 0, 
                    fatal = 0, ), 
                rules = [
                    iqs_client.models.generic_validation_rule.GenericValidationRule(
                        constraint = iqs_client.models.typed_element_in_compartment_descriptor.TypedElementInCompartmentDescriptor(
                            element = {"compartmentURI":"mms-index:/orgs/iql/projects/PROJECT-d0c236d9-186a-485c-9c67-9e6693d1f0d8/refs/master/commits/bc1d4c28-f777-4f58-9df3-b856f39d928f","relativeElementID":"_10_0EAPbeta2_8740266_1126081779875_694366_861"}, 
                            type = '0', 
                            name = '0', 
                            element_link = '0', ), 
                        severity = 'info', 
                        matching_elements = [
                            iqs_client.models.generic_validation_matching_element.GenericValidationMatchingElement(
                                message = '0', 
                                matching_element = iqs_client.models.typed_element_in_compartment_descriptor.TypedElementInCompartmentDescriptor(
                                    element = {"compartmentURI":"mms-index:/orgs/iql/projects/PROJECT-d0c236d9-186a-485c-9c67-9e6693d1f0d8/refs/master/commits/bc1d4c28-f777-4f58-9df3-b856f39d928f","relativeElementID":"_10_0EAPbeta2_8740266_1126081779875_694366_861"}, 
                                    type = '0', 
                                    name = '0', 
                                    element_link = '0', ), )
                            ], )
                    ]
            )
        else :
            return GenericValidationResults(
                compartment = {"compartmentURI":"mms-index:/orgs/iql/projects/PROJECT-d0c236d9-186a-485c-9c67-9e6693d1f0d8/refs/master/commits/bc1d4c28-f777-4f58-9df3-b856f39d928f"},
                diagnostics = iqs_client.models.validation_diagnostics.ValidationDiagnostics(
                    info = 0, 
                    debug = 0, 
                    warning = 0, 
                    error = 0, 
                    fatal = 0, ),
                rules = [
                    iqs_client.models.generic_validation_rule.GenericValidationRule(
                        constraint = iqs_client.models.typed_element_in_compartment_descriptor.TypedElementInCompartmentDescriptor(
                            element = {"compartmentURI":"mms-index:/orgs/iql/projects/PROJECT-d0c236d9-186a-485c-9c67-9e6693d1f0d8/refs/master/commits/bc1d4c28-f777-4f58-9df3-b856f39d928f","relativeElementID":"_10_0EAPbeta2_8740266_1126081779875_694366_861"}, 
                            type = '0', 
                            name = '0', 
                            element_link = '0', ), 
                        severity = 'info', 
                        matching_elements = [
                            iqs_client.models.generic_validation_matching_element.GenericValidationMatchingElement(
                                message = '0', 
                                matching_element = iqs_client.models.typed_element_in_compartment_descriptor.TypedElementInCompartmentDescriptor(
                                    element = {"compartmentURI":"mms-index:/orgs/iql/projects/PROJECT-d0c236d9-186a-485c-9c67-9e6693d1f0d8/refs/master/commits/bc1d4c28-f777-4f58-9df3-b856f39d928f","relativeElementID":"_10_0EAPbeta2_8740266_1126081779875_694366_861"}, 
                                    type = '0', 
                                    name = '0', 
                                    element_link = '0', ), )
                            ], )
                    ],
        )

    def testGenericValidationResults(self):
        """Test GenericValidationResults"""
        inst_req_only = self.make_instance(include_optional=False)
        inst_req_and_optional = self.make_instance(include_optional=True)


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