logos-storage-py-api-client/test/test_data_item.py
2024-08-23 16:22:29 +02:00

57 lines
1.6 KiB
Python

# coding: utf-8
"""
Codex API
List of endpoints and interfaces available to Codex API users
The version of the OpenAPI document: 0.0.1
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from codex_client.models.data_item import DataItem
class TestDataItem(unittest.TestCase):
"""DataItem unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> DataItem:
"""Test DataItem
include_optional 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 `DataItem`
"""
model = DataItem()
if include_optional:
return DataItem(
cid = 'QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N',
manifest = codex_client.models.manifest_item.ManifestItem(
root_hash = 'QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N',
original_bytes = 56,
block_size = 56,
protected = True, )
)
else:
return DataItem(
)
"""
def testDataItem(self):
"""Test DataItem"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()