You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.4 KiB

2 years ago
  1. # coding: utf-8
  2. """
  3. Seaweedfs Master Server API
  4. The Seaweedfs Master Server API allows you to store blobs # noqa: E501
  5. The version of the OpenAPI document: 3.43.0
  6. Generated by: https://openapi-generator.tech
  7. """
  8. from __future__ import absolute_import
  9. import unittest
  10. import datetime
  11. import openapi_client
  12. from openapi_client.models.location import Location # noqa: E501
  13. from openapi_client.rest import ApiException
  14. class TestLocation(unittest.TestCase):
  15. """Location unit test stubs"""
  16. def setUp(self):
  17. pass
  18. def tearDown(self):
  19. pass
  20. def make_instance(self, include_optional):
  21. """Test Location
  22. include_option is a boolean, when False only required
  23. params are included, when True both required and
  24. optional params are included """
  25. # uncomment below to create an instance of `Location`
  26. """
  27. model = openapi_client.models.location.Location() # noqa: E501
  28. if include_optional :
  29. return Location(
  30. public_url = localhost:8080,
  31. url = localhost:8080
  32. )
  33. else :
  34. return Location(
  35. )
  36. """
  37. def testLocation(self):
  38. """Test Location"""
  39. # inst_req_only = self.make_instance(include_optional=False)
  40. # inst_req_and_optional = self.make_instance(include_optional=True)
  41. if __name__ == '__main__':
  42. unittest.main()