|
| 1 | +# coding: utf-8 |
| 2 | + |
| 3 | +""" |
| 4 | + Bandwidth |
| 5 | +
|
| 6 | + Bandwidth's Communication APIs |
| 7 | +
|
| 8 | + The version of the OpenAPI document: 1.0.0 |
| 9 | + Contact: letstalk@bandwidth.com |
| 10 | + Generated by OpenAPI Generator (https://openapi-generator.tech) |
| 11 | +
|
| 12 | + Do not edit the class manually. |
| 13 | +""" # noqa: E501 |
| 14 | + |
| 15 | + |
| 16 | +import unittest |
| 17 | + |
| 18 | +from bandwidth.models.brtc_error_response import BrtcErrorResponse |
| 19 | + |
| 20 | +class TestBrtcErrorResponse(unittest.TestCase): |
| 21 | + """BrtcErrorResponse unit test stubs""" |
| 22 | + |
| 23 | + def setUp(self): |
| 24 | + pass |
| 25 | + |
| 26 | + def tearDown(self): |
| 27 | + pass |
| 28 | + |
| 29 | + def make_instance(self, include_optional) -> BrtcErrorResponse: |
| 30 | + """Test BrtcErrorResponse |
| 31 | + include_optional is a boolean, when False only required |
| 32 | + params are included, when True both required and |
| 33 | + optional params are included """ |
| 34 | + # uncomment below to create an instance of `BrtcErrorResponse` |
| 35 | + """ |
| 36 | + model = BrtcErrorResponse() |
| 37 | + if include_optional: |
| 38 | + return BrtcErrorResponse( |
| 39 | + links = [ |
| 40 | + bandwidth.models.brtc_link.brtcLink( |
| 41 | + href = 'https://api.bandwidth.com/v2/accounts/5500123/endpoints/e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85', |
| 42 | + rel = 'self', |
| 43 | + method = 'GET', ) |
| 44 | + ], |
| 45 | + data = None, |
| 46 | + errors = [ |
| 47 | + bandwidth.models.brtc_error.brtcError( |
| 48 | + id = '59512d87-7a92-4040-8e4a-78fb772019b9', |
| 49 | + type = 'resource.not_found', |
| 50 | + description = 'The requested resource was not found.', |
| 51 | + code = '404', |
| 52 | + source = bandwidth.models.brtc_error_source.brtcErrorSource( |
| 53 | + parameter = 'accountId', |
| 54 | + field = 'accountId', |
| 55 | + header = 'Authorization', |
| 56 | + reference = 'e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85', ), ) |
| 57 | + ] |
| 58 | + ) |
| 59 | + else: |
| 60 | + return BrtcErrorResponse( |
| 61 | + links = [ |
| 62 | + bandwidth.models.brtc_link.brtcLink( |
| 63 | + href = 'https://api.bandwidth.com/v2/accounts/5500123/endpoints/e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85', |
| 64 | + rel = 'self', |
| 65 | + method = 'GET', ) |
| 66 | + ], |
| 67 | + data = None, |
| 68 | + errors = [ |
| 69 | + bandwidth.models.brtc_error.brtcError( |
| 70 | + id = '59512d87-7a92-4040-8e4a-78fb772019b9', |
| 71 | + type = 'resource.not_found', |
| 72 | + description = 'The requested resource was not found.', |
| 73 | + code = '404', |
| 74 | + source = bandwidth.models.brtc_error_source.brtcErrorSource( |
| 75 | + parameter = 'accountId', |
| 76 | + field = 'accountId', |
| 77 | + header = 'Authorization', |
| 78 | + reference = 'e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85', ), ) |
| 79 | + ], |
| 80 | + ) |
| 81 | + """ |
| 82 | + |
| 83 | + def testBrtcErrorResponse(self): |
| 84 | + """Test BrtcErrorResponse""" |
| 85 | + # inst_req_only = self.make_instance(include_optional=False) |
| 86 | + # inst_req_and_optional = self.make_instance(include_optional=True) |
| 87 | + |
| 88 | +if __name__ == '__main__': |
| 89 | + unittest.main() |
0 commit comments