# coding: utf-8

"""
    Algorithmia Management APIs

    APIs for managing actions on the Algorithmia platform  # noqa: E501

    The version of the OpenAPI document: 1.0.1
    Contact: support@algorithmia.com
    Generated by: https://openapi-generator.tech
"""


from __future__ import absolute_import

import unittest
import datetime

import algorithmia_api_client
from algorithmia_api_client.models.directory import Directory  # noqa: E501
from algorithmia_api_client.rest import ApiException

class TestDirectory(unittest.TestCase):
    """Directory unit test stubs"""

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def make_instance(self, include_optional):
        """Test Directory
            include_option is a boolean, when False only required
            params are included, when True both required and
            optional params are included """
        # model = algorithmia_api_client.models.directory.Directory()  # noqa: E501
        if include_optional :
            return Directory(
                acl = algorithmia_api_client.models.directory_acl.DirectoryAcl(
                    read = [
                        'user://*'
                        ], ), 
                files = [
                    algorithmia_api_client.models.file.File(
                        filename = '0', 
                        last_modified = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), 
                        size = 1.337, )
                    ], 
                folders = [
                    algorithmia_api_client.models.folder.Folder(
                        name = '0', )
                    ], 
                marker = '0'
            )
        else :
            return Directory(
        )

    def testDirectory(self):
        """Test Directory"""
        inst_req_only = self.make_instance(include_optional=False)
        inst_req_and_optional = self.make_instance(include_optional=True)


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