Skip to content

Commit 45f1e3d

Browse files
committed
blocked webhook tests
1 parent 77f7d79 commit 45f1e3d

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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+
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.blocked_webhook import BlockedWebhook
19+
20+
class TestBlockedWebhook(unittest.TestCase):
21+
"""BlockedWebhook 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) -> BlockedWebhook:
30+
"""Test BlockedWebhook
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+
35+
model = BlockedWebhook()
36+
if include_optional:
37+
return BlockedWebhook(
38+
account_id = '1234567',
39+
phone_number = '+18005555555',
40+
status = 'VERIFIED',
41+
internal_ticket_number = 'acde070d-8c4c-4f0d-9d8a-162843c10333',
42+
blocked = True,
43+
blocked_reason = 'Toll-free number was used to send spam messages'
44+
)
45+
else:
46+
return BlockedWebhook(
47+
)
48+
49+
def testBlockedWebhook(self):
50+
"""Test BlockedWebhook"""
51+
instance = self.make_instance(True)
52+
assert instance is not None
53+
assert isinstance(instance, BlockedWebhook)
54+
assert instance.account_id == '1234567'
55+
assert instance.phone_number == '+18005555555'
56+
assert instance.status == 'VERIFIED'
57+
assert instance.internal_ticket_number == 'acde070d-8c4c-4f0d-9d8a-162843c10333'
58+
assert instance.blocked == True
59+
assert instance.blocked_reason == 'Toll-free number was used to send spam messages'
60+
61+
if __name__ == '__main__':
62+
unittest.main()

0 commit comments

Comments
 (0)