# coding: utf-8

"""
    Tator REST API

    Interface to the Tator backend.  # noqa: E501

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


from __future__ import absolute_import

import unittest
import datetime

import tator
from tator.models.progress_spec import ProgressSpec  # noqa: E501
from tator.rest import ApiException

class TestProgressSpec(unittest.TestCase):
    """ProgressSpec unit test stubs"""

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def make_instance(self, include_optional):
        """Test ProgressSpec
            include_option is a boolean, when False only required
            params are included, when True both required and
            optional params are included """
        # model = tator.models.progress_spec.ProgressSpec()  # noqa: E501
        if include_optional :
            return ProgressSpec(
                gid = '0', 
                job_type = 'upload', 
                media_ids = '0', 
                message = '0', 
                name = '0', 
                progress = 0, 
                section = '0', 
                sections = '0', 
                state = 'queued', 
                swid = '0', 
                uid = '0'
            )
        else :
            return ProgressSpec(
                gid = '0',
                job_type = 'upload',
                message = '0',
                name = '0',
                progress = 0,
                state = 'queued',
                uid = '0',
        )

    def testProgressSpec(self):
        """Test ProgressSpec"""
        inst_req_only = self.make_instance(include_optional=False)
        inst_req_and_optional = self.make_instance(include_optional=True)


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