Skip to content

Commit 2408a9f

Browse files
committed
enum unit tests
1 parent 364e48d commit 2408a9f

8 files changed

+312
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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.card_width_enum import CardWidthEnum
19+
20+
class TestCardWidthEnum(unittest.TestCase):
21+
"""CardWidthEnum unit test stubs"""
22+
23+
def setUp(self):
24+
pass
25+
26+
def tearDown(self):
27+
pass
28+
29+
def testCardWidthEnum(self):
30+
"""Test CardWidthEnum"""
31+
small = CardWidthEnum('SMALL')
32+
medium = CardWidthEnum('MEDIUM')
33+
assert small == 'SMALL'
34+
assert medium == 'MEDIUM'
35+
36+
if __name__ == '__main__':
37+
unittest.main()
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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.multi_channel_message_channel_enum import MultiChannelMessageChannelEnum
19+
20+
class TestMultiChannelMessageChannelEnum(unittest.TestCase):
21+
"""MultiChannelMessageChannelEnum unit test stubs"""
22+
23+
def setUp(self):
24+
pass
25+
26+
def tearDown(self):
27+
pass
28+
29+
def testMultiChannelMessageChannelEnum(self):
30+
"""Test MultiChannelMessageChannelEnum"""
31+
rbm = MultiChannelMessageChannelEnum('RBM')
32+
sms = MultiChannelMessageChannelEnum('SMS')
33+
mms = MultiChannelMessageChannelEnum('MMS')
34+
assert rbm == 'RBM'
35+
assert sms == 'SMS'
36+
assert mms == 'MMS'
37+
38+
if __name__ == '__main__':
39+
unittest.main()
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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.multi_channel_message_direction_enum import MultiChannelMessageDirectionEnum
19+
20+
class TestMultiChannelMessageDirectionEnum(unittest.TestCase):
21+
"""MultiChannelMessageDirectionEnum unit test stubs"""
22+
23+
def setUp(self):
24+
pass
25+
26+
def tearDown(self):
27+
pass
28+
29+
def testMultiChannelMessageDirectionEnum(self):
30+
"""Test MultiChannelMessageDirectionEnum"""
31+
inbound = MultiChannelMessageDirectionEnum('INBOUND')
32+
outbound = MultiChannelMessageDirectionEnum('OUTBOUND')
33+
assert inbound == 'INBOUND'
34+
assert outbound == 'OUTBOUND'
35+
36+
if __name__ == '__main__':
37+
unittest.main()
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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.multi_channel_status_enum import MultiChannelStatusEnum
19+
20+
class TestMultiChannelStatusEnum(unittest.TestCase):
21+
"""MultiChannelStatusEnum unit test stubs"""
22+
23+
def setUp(self):
24+
pass
25+
26+
def tearDown(self):
27+
pass
28+
29+
def testMultiChannelStatusEnum(self):
30+
"""Test MultiChannelStatusEnum"""
31+
queued = MultiChannelStatusEnum('QUEUED')
32+
sending = MultiChannelStatusEnum('SENDING')
33+
delivered = MultiChannelStatusEnum('DELIVERED')
34+
failed = MultiChannelStatusEnum('FAILED')
35+
assert queued == 'QUEUED'
36+
assert sending == 'SENDING'
37+
assert delivered == 'DELIVERED'
38+
assert failed == 'FAILED'
39+
40+
if __name__ == '__main__':
41+
unittest.main()
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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.rbm_action_type_enum import RbmActionTypeEnum
19+
20+
class TestRbmActionTypeEnum(unittest.TestCase):
21+
"""RbmActionTypeEnum unit test stubs"""
22+
23+
def setUp(self):
24+
pass
25+
26+
def tearDown(self):
27+
pass
28+
29+
def testRbmActionTypeEnum(self):
30+
"""Test RbmActionTypeEnum"""
31+
reply = RbmActionTypeEnum('REPLY')
32+
dial_phone = RbmActionTypeEnum('DIAL_PHONE')
33+
show_location = RbmActionTypeEnum('SHOW_LOCATION')
34+
create_calendar_event = RbmActionTypeEnum('CREATE_CALENDAR_EVENT')
35+
open_url = RbmActionTypeEnum('OPEN_URL')
36+
request_location = RbmActionTypeEnum('REQUEST_LOCATION')
37+
assert reply == 'REPLY'
38+
assert dial_phone == 'DIAL_PHONE'
39+
assert show_location == 'SHOW_LOCATION'
40+
assert create_calendar_event == 'CREATE_CALENDAR_EVENT'
41+
assert open_url == 'OPEN_URL'
42+
assert request_location == 'REQUEST_LOCATION'
43+
44+
if __name__ == '__main__':
45+
unittest.main()
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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.rbm_media_height_enum import RbmMediaHeightEnum
19+
20+
class TestRbmMediaHeightEnum(unittest.TestCase):
21+
"""RbmMediaHeightEnum unit test stubs"""
22+
23+
def setUp(self):
24+
pass
25+
26+
def tearDown(self):
27+
pass
28+
29+
def testRbmMediaHeightEnum(self):
30+
"""Test RbmMediaHeightEnum"""
31+
short = RbmMediaHeightEnum('SHORT')
32+
medium = RbmMediaHeightEnum('MEDIUM')
33+
tall = RbmMediaHeightEnum('TALL')
34+
assert short == 'SHORT'
35+
assert medium == 'MEDIUM'
36+
assert tall == 'TALL'
37+
38+
if __name__ == '__main__':
39+
unittest.main()
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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.standalone_card_orientation_enum import StandaloneCardOrientationEnum
19+
20+
class TestStandaloneCardOrientationEnum(unittest.TestCase):
21+
"""StandaloneCardOrientationEnum unit test stubs"""
22+
23+
def setUp(self):
24+
pass
25+
26+
def tearDown(self):
27+
pass
28+
29+
def testStandaloneCardOrientationEnum(self):
30+
"""Test StandaloneCardOrientationEnum"""
31+
horizontal = StandaloneCardOrientationEnum('HORIZONTAL')
32+
vertical = StandaloneCardOrientationEnum('VERTICAL')
33+
assert horizontal == 'HORIZONTAL'
34+
assert vertical == 'VERTICAL'
35+
36+
if __name__ == '__main__':
37+
unittest.main()
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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.thumbnail_alignment_enum import ThumbnailAlignmentEnum
19+
20+
class TestThumbnailAlignmentEnum(unittest.TestCase):
21+
"""ThumbnailAlignmentEnum unit test stubs"""
22+
23+
def setUp(self):
24+
pass
25+
26+
def tearDown(self):
27+
pass
28+
29+
def testThumbnailAlignmentEnum(self):
30+
"""Test ThumbnailAlignmentEnum"""
31+
left = ThumbnailAlignmentEnum('LEFT')
32+
right = ThumbnailAlignmentEnum('RIGHT')
33+
assert left == 'LEFT'
34+
assert right == 'RIGHT'
35+
36+
if __name__ == '__main__':
37+
unittest.main()

0 commit comments

Comments
 (0)