<reponame>yanavasileva/camunda-bpm-examples
# coding: utf-8

"""
    Camunda BPM REST API

    OpenApi Spec for Camunda BPM REST API.  # noqa: E501

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


from __future__ import absolute_import

import unittest
import datetime

import openapi_client
from openapi_client.models.task_dto import TaskDto  # noqa: E501
from openapi_client.rest import ApiException

class TestTaskDto(unittest.TestCase):
    """TaskDto unit test stubs"""

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def make_instance(self, include_optional):
        """Test TaskDto
            include_option is a boolean, when False only required
            params are included, when True both required and
            optional params are included """
        # model = openapi_client.models.task_dto.TaskDto()  # noqa: E501
        if include_optional :
            return TaskDto(
                id = '0', 
                name = '0', 
                assignee = '0', 
                owner = '0', 
                created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), 
                due = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), 
                follow_up = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), 
                delegation_state = 'PENDING', 
                description = '0', 
                execution_id = '0', 
                parent_task_id = '0', 
                priority = 56, 
                process_definition_id = '0', 
                process_instance_id = '0', 
                case_execution_id = '0', 
                case_definition_id = '0', 
                case_instance_id = '0', 
                task_definition_key = '0', 
                suspended = True, 
                form_key = '0', 
                tenant_id = '0'
            )
        else :
            return TaskDto(
        )

    def testTaskDto(self):
        """Test TaskDto"""
        inst_req_only = self.make_instance(include_optional=False)
        inst_req_and_optional = self.make_instance(include_optional=True)


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

# coding: utf-8

"""
    Camunda BPM REST API

    OpenApi Spec for Camunda BPM REST API.  # noqa: E501

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


from __future__ import absolute_import

import unittest
import datetime

import openapi_client
from openapi_client.models.task_dto import TaskDto  # noqa: E501
from openapi_client.rest import ApiException

class TestTaskDto(unittest.TestCase):
    """TaskDto unit test stubs"""

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def make_instance(self, include_optional):
        """Test TaskDto
            include_option is a boolean, when False only required
            params are included, when True both required and
            optional params are included """
        # model = openapi_client.models.task_dto.TaskDto()  # noqa: E501
        if include_optional :
            return TaskDto(
                id = '0', 
                name = '0', 
                assignee = '0', 
                owner = '0', 
                created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), 
                due = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), 
                follow_up = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), 
                delegation_state = 'PENDING', 
                description = '0', 
                execution_id = '0', 
                parent_task_id = '0', 
                priority = 56, 
                process_definition_id = '0', 
                process_instance_id = '0', 
                case_execution_id = '0', 
                case_definition_id = '0', 
                case_instance_id = '0', 
                task_definition_key = '0', 
                suspended = True, 
                form_key = '0', 
                tenant_id = '0'
            )
        else :
            return TaskDto(
        )

    def testTaskDto(self):
        """Test TaskDto"""
        inst_req_only = self.make_instance(include_optional=False)
        inst_req_and_optional = self.make_instance(include_optional=True)


if __name__ == '__main__':
    unittest.main()
# coding: utf-8 Camunda BPM REST API      OpenApi Spec for Camunda BPM REST API.  # noqa: E501      The version of the OpenAPI document: 7.13.0     Generated by: https://openapi-generator.tech # noqa: E501 TaskDto unit test stubs Test TaskDto             include_option is a boolean, when False only required             params are included, when True both required and             optional params are included # model = openapi_client.models.task_dto.TaskDto()  # noqa: E501 Test TaskDto