74 lines
1.9 KiB
Python
74 lines
1.9 KiB
Python
# coding: utf-8
|
|
|
|
"""
|
|
mpijob
|
|
|
|
Python SDK for MPI-Operator # noqa: E501
|
|
|
|
The version of the OpenAPI document: v2beta1
|
|
Generated by: https://openapi-generator.tech
|
|
"""
|
|
|
|
|
|
from __future__ import absolute_import
|
|
|
|
import unittest
|
|
import datetime
|
|
|
|
import mpijob
|
|
from mpijob.models.v1_api_resource import V1APIResource # noqa: E501
|
|
from mpijob.rest import ApiException
|
|
|
|
class TestV1APIResource(unittest.TestCase):
|
|
"""V1APIResource unit test stubs"""
|
|
|
|
def setUp(self):
|
|
pass
|
|
|
|
def tearDown(self):
|
|
pass
|
|
|
|
def make_instance(self, include_optional):
|
|
"""Test V1APIResource
|
|
include_option is a boolean, when False only required
|
|
params are included, when True both required and
|
|
optional params are included """
|
|
# model = mpijob.models.v1_api_resource.V1APIResource() # noqa: E501
|
|
if include_optional :
|
|
return V1APIResource(
|
|
categories = [
|
|
''
|
|
],
|
|
group = '',
|
|
kind = '',
|
|
name = '',
|
|
namespaced = True,
|
|
short_names = [
|
|
''
|
|
],
|
|
singular_name = '',
|
|
storage_version_hash = '',
|
|
verbs = [
|
|
''
|
|
],
|
|
version = ''
|
|
)
|
|
else :
|
|
return V1APIResource(
|
|
kind = '',
|
|
name = '',
|
|
namespaced = True,
|
|
singular_name = '',
|
|
verbs = [
|
|
''
|
|
],
|
|
)
|
|
|
|
def testV1APIResource(self):
|
|
"""Test V1APIResource"""
|
|
inst_req_only = self.make_instance(include_optional=False)
|
|
inst_req_and_optional = self.make_instance(include_optional=True)
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|