-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathtest_lookup_result.py
More file actions
72 lines (59 loc) · 2.46 KB
/
test_lookup_result.py
File metadata and controls
72 lines (59 loc) · 2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# coding: utf-8
"""
Bandwidth
Bandwidth's Communication APIs
The version of the OpenAPI document: 1.0.0
Contact: letstalk@bandwidth.com
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from datetime import date
from bandwidth.models.lookup_result import LookupResult
class TestLookupResult(unittest.TestCase):
"""LookupResult unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> LookupResult:
"""Test LookupResult
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
if include_optional:
return LookupResult(
phone_number = '+10072904498',
line_type = 'MOBILE',
messaging_provider = 'Verizon Wireless',
voice_provider = 'Verizon Wireless',
country_code_a3 = 'USA',
deactivation_reporter = '',
deactivation_date = '2025-06-20 18:35',
deactivation_event = 'DEACTIVATED',
latest_message_delivery_status = 'ACTIVE',
initial_message_delivery_status_date = '2025-06-20',
latest_message_delivery_status_date = '2025-06-20',
rcs_enabled = True, )
else:
return LookupResult(
)
def testLookupResult(self):
"""Test LookupResult"""
instance = self.make_instance(True)
assert instance is not None
assert isinstance(instance, LookupResult)
assert instance.phone_number == '+10072904498'
assert instance.line_type == 'MOBILE'
assert instance.messaging_provider == 'Verizon Wireless'
assert instance.voice_provider == 'Verizon Wireless'
assert instance.country_code_a3 == 'USA'
assert instance.deactivation_reporter == ''
assert instance.deactivation_date == '2025-06-20 18:35'
assert instance.deactivation_event == 'DEACTIVATED'
assert instance.latest_message_delivery_status == 'ACTIVE'
assert isinstance(instance.initial_message_delivery_status_date, date)
assert isinstance(instance.latest_message_delivery_status_date, date)
assert instance.rcs_enabled == True
if __name__ == '__main__':
unittest.main()