# coding: utf-8

"""
    OneLogin API

    OpenAPI Specification for OneLogin  # noqa: E501

    The version of the OpenAPI document: 3.1.1
    Generated by OpenAPI Generator (https://openapi-generator.tech)

    Do not edit the class manually.
"""


import unittest
import datetime

import onelogin
from onelogin.models.privilege import Privilege  # noqa: E501
from onelogin.rest import ApiException

class TestPrivilege(unittest.TestCase):
    """Privilege unit test stubs"""

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def make_instance(self, include_optional):
        """Test Privilege
            include_option is a boolean, when False only required
            params are included, when True both required and
            optional params are included """
        # uncomment below to create an instance of `Privilege`
        """
        model = onelogin.models.privilege.Privilege()  # noqa: E501
        if include_optional :
            return Privilege(
                id = '2c963197-bee2-4607-abc0-4786f1bfa55a', 
                name = 'User Administrator', 
                description = 'Can administer users', 
                privilege = onelogin.models.privilege_privilege.privilege_privilege(
                    version = '2018-05-18', 
                    statement = [
                        onelogin.models.privilege_privilege_statement_inner.privilege_privilege_Statement_inner(
                            effect = 'Allow', 
                            action = ["Users:Delete","Users:ResetPassword","Users:Unlock","Users:Get"], 
                            scope = [
                                '*'
                                ], )
                        ], )
            )
        else :
            return Privilege(
                name = 'User Administrator',
                privilege = onelogin.models.privilege_privilege.privilege_privilege(
                    version = '2018-05-18', 
                    statement = [
                        onelogin.models.privilege_privilege_statement_inner.privilege_privilege_Statement_inner(
                            effect = 'Allow', 
                            action = ["Users:Delete","Users:ResetPassword","Users:Unlock","Users:Get"], 
                            scope = [
                                '*'
                                ], )
                        ], ),
        )
        """

    def testPrivilege(self):
        """Test Privilege"""
        # inst_req_only = self.make_instance(include_optional=False)
        # inst_req_and_optional = self.make_instance(include_optional=True)

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