-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_get_project_devices200_response.py
191 lines (178 loc) · 8.19 KB
/
test_get_project_devices200_response.py
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
# coding: utf-8
"""
Notehub API
The OpenAPI definition for the Notehub.io API.
The version of the OpenAPI document: 1.2.0
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from notehub_py.models.get_project_devices200_response import GetProjectDevices200Response
class TestGetProjectDevices200Response(unittest.TestCase):
"""GetProjectDevices200Response unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> GetProjectDevices200Response:
"""Test GetProjectDevices200Response
include_option is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `GetProjectDevices200Response`
"""
model = GetProjectDevices200Response()
if include_optional:
return GetProjectDevices200Response(
devices = [
notehub_py.models.device.Device(
uid = '',
serial_number = '',
provisioned = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
last_activity = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
contact = notehub_py.models.contact.Contact(
name = '',
email = '',
role = '',
organization = '', ),
product_uid = '',
fleet_uids = [
''
],
tower_info = notehub_py.models.device_tower_info.Device_tower_info(
mcc = 56,
mnc = 56,
lac = 56,
cell_id = 56, ),
tower_location = notehub_py.models.location.Location(
when = '',
name = '',
country = '',
timezone = '',
latitude = 1.337,
longitude = 1.337, ),
gps_location = notehub_py.models.location.Location(
when = '',
name = '',
country = '',
timezone = '',
latitude = 1.337,
longitude = 1.337, ),
triangulated_location = ,
voltage = 1.337,
temperature = 1.337,
dfu = notehub_py.models.dfu_env.DFUEnv(
card = notehub_py.models.dfu_state.DFUState(
type = 'card',
file = '',
length = 1.337,
crc32 = 1.337,
md5 = '',
mode = 'idle',
status = '',
began = 1.337,
retry = 1.337,
errors = 1.337,
read = 1.337,
updated = 1.337,
version = '', ),
user = notehub_py.models.dfu_state.DFUState(
type = 'card',
file = '',
length = 1.337,
crc32 = 1.337,
md5 = '',
mode = 'idle',
status = '',
began = 1.337,
retry = 1.337,
errors = 1.337,
read = 1.337,
updated = 1.337,
version = '', ), ),
sku = '',
disabled = True, )
],
has_more = True
)
else:
return GetProjectDevices200Response(
devices = [
notehub_py.models.device.Device(
uid = '',
serial_number = '',
provisioned = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
last_activity = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
contact = notehub_py.models.contact.Contact(
name = '',
email = '',
role = '',
organization = '', ),
product_uid = '',
fleet_uids = [
''
],
tower_info = notehub_py.models.device_tower_info.Device_tower_info(
mcc = 56,
mnc = 56,
lac = 56,
cell_id = 56, ),
tower_location = notehub_py.models.location.Location(
when = '',
name = '',
country = '',
timezone = '',
latitude = 1.337,
longitude = 1.337, ),
gps_location = notehub_py.models.location.Location(
when = '',
name = '',
country = '',
timezone = '',
latitude = 1.337,
longitude = 1.337, ),
triangulated_location = ,
voltage = 1.337,
temperature = 1.337,
dfu = notehub_py.models.dfu_env.DFUEnv(
card = notehub_py.models.dfu_state.DFUState(
type = 'card',
file = '',
length = 1.337,
crc32 = 1.337,
md5 = '',
mode = 'idle',
status = '',
began = 1.337,
retry = 1.337,
errors = 1.337,
read = 1.337,
updated = 1.337,
version = '', ),
user = notehub_py.models.dfu_state.DFUState(
type = 'card',
file = '',
length = 1.337,
crc32 = 1.337,
md5 = '',
mode = 'idle',
status = '',
began = 1.337,
retry = 1.337,
errors = 1.337,
read = 1.337,
updated = 1.337,
version = '', ), ),
sku = '',
disabled = True, )
],
has_more = True,
)
"""
def testGetProjectDevices200Response(self):
"""Test GetProjectDevices200Response"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()