# coding: utf-8

"""
    Agilicus API

    Agilicus API endpoints  # noqa: E501

    The version of the OpenAPI document: 2021.04.16
    Contact: dev@agilicus.com
    Generated by: https://openapi-generator.tech
"""


from __future__ import absolute_import

import unittest
import datetime

import agilicus_api
from agilicus_api.models.organisation import Organisation  # noqa: E501
from agilicus_api.rest import ApiException

class TestOrganisation(unittest.TestCase):
    """Organisation unit test stubs"""

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def make_instance(self, include_optional):
        """Test Organisation
            include_option is a boolean, when False only required
            params are included, when True both required and
            optional params are included """
        # model = agilicus_api.models.organisation.Organisation()  # noqa: E501
        if include_optional :
            return Organisation(
                id = '123', 
                all_users_group_id = '123', 
                all_users_all_suborgs_group_id = '123', 
                all_users_direct_suborgs_group_id = '123', 
                auto_created_users_group_id = '123', 
                external_id = '123', 
                organisation = 'some name', 
                issuer = 'app1', 
                issuer_id = '123', 
                subdomain = 'app1.example.com', 
                name_slug = 'a', 
                created = '2015-07-07T15:49:51.230+02:00', 
                updated = '2015-07-07T15:49:51.230+02:00', 
                contact_id = '123', 
                contact_email = 'contact@agilicus.com', 
                parent_id = '123', 
                root_org_id = 'aB29sdkD3jlaAbl7', 
                auto_create = True, 
                trust_on_first_use_duration = 0, 
                feature_flags = [
                    agilicus_api.models.feature_flag.FeatureFlag(
                        feature = 'saml_auth', 
                        enabled = True, 
                        setting = '0', )
                    ], 
                admin_state = 'active', 
                status = agilicus_api.models.organisation_status.OrganisationStatus(
                    all_up = True, 
                    admin_up = True, 
                    issuer_up = True, 
                    current_state = 'active', )
            )
        else :
            return Organisation(
        )

    def testOrganisation(self):
        """Test Organisation"""
        inst_req_only = self.make_instance(include_optional=False)
        inst_req_and_optional = self.make_instance(include_optional=True)


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