@@ -149,7 +149,7 @@ def test_full_json_response_deserialization(self):
149
149
"elot_sort": "A",
150
150
"latitude": 40.27658,
151
151
"longitude": -111.65759,
152
- "coordinate_license": 1,
152
+ "coordinate_license": 1,
153
153
"precision": "Zip9",
154
154
"time_zone": "Mountain",
155
155
"utc_offset": -7,
@@ -167,7 +167,55 @@ def test_full_json_response_deserialization(self):
167
167
"lacslink_code": "lacslink_code",
168
168
"lacslink_indicator": "lacslink_indicator",
169
169
"suitelink_match": true,
170
- "enhanced_match": "enhanced_match"
170
+ "enhanced_match": "enhanced_match",
171
+ "components": {
172
+ "primary_number": {
173
+ "status": "confirmed",
174
+ "change": ["spelling"]
175
+ },
176
+ "street_predirection": {
177
+ "status": "confirmed",
178
+ "change": ["spelling"]
179
+ },
180
+ "street_name": {
181
+ "status": "confirmed",
182
+ "change": ["added"]
183
+ },
184
+ "street_postdirection": {
185
+ "status": "confirmed"
186
+ },
187
+ "street_suffix": {
188
+ "status": "confirmed"
189
+ },
190
+ "secondary_number": {
191
+ "status": "confirmed"
192
+ },
193
+ "secondary_designator": {
194
+ "status": "confirmed"
195
+ },
196
+ "extra_secondary_number": {
197
+ "status": "confirmed"
198
+ },
199
+ "extra_secondary_designator": {
200
+ "status": "confirmed",
201
+ "change": ["abbreviated"]
202
+ },
203
+ "city_name": {
204
+ "status": "confirmed"
205
+ },
206
+ "state_abbreviation": {
207
+ "status": "confirmed"
208
+ },
209
+ "zipcode": {
210
+ "status": "confirmed"
211
+ },
212
+ "plus4_code": {
213
+ "status": "confirmed"
214
+ },
215
+ "urbanization": {
216
+ "status": "unconfirmed"
217
+ }
218
+ }
171
219
}
172
220
}"""
173
221
@@ -230,3 +278,33 @@ def test_full_json_response_deserialization(self):
230
278
self .assertEqual (actual_candidate .analysis .lacs_link_indicator , "lacslink_indicator" )
231
279
self .assertEqual (actual_candidate .analysis .is_suite_link_match , True )
232
280
self .assertEqual (actual_candidate .analysis .enhanced_match , "enhanced_match" )
281
+
282
+ self .assertEqual (actual_candidate .analysis .components .primary_number .status , "confirmed" )
283
+ self .assertEqual (actual_candidate .analysis .components .primary_number .change , ["spelling" ])
284
+ self .assertEqual (actual_candidate .analysis .components .street_predirection .status , "confirmed" )
285
+ self .assertEqual (actual_candidate .analysis .components .street_predirection .change , ["spelling" ])
286
+ self .assertEqual (actual_candidate .analysis .components .street_name .status , "confirmed" )
287
+ self .assertEqual (actual_candidate .analysis .components .street_name .change , ["added" ])
288
+ self .assertEqual (actual_candidate .analysis .components .street_postdirection .status , "confirmed" )
289
+ self .assertIsNone (actual_candidate .analysis .components .street_postdirection .change )
290
+ self .assertEqual (actual_candidate .analysis .components .street_suffix .status , "confirmed" )
291
+ self .assertIsNone (actual_candidate .analysis .components .street_suffix .change )
292
+ self .assertEqual (actual_candidate .analysis .components .secondary_number .status , "confirmed" )
293
+ self .assertIsNone (actual_candidate .analysis .components .secondary_number .change )
294
+ self .assertEqual (actual_candidate .analysis .components .secondary_designator .status , "confirmed" )
295
+ self .assertIsNone (actual_candidate .analysis .components .secondary_designator .change )
296
+ self .assertEqual (actual_candidate .analysis .components .extra_secondary_number .status , "confirmed" )
297
+ self .assertIsNone (actual_candidate .analysis .components .extra_secondary_number .change )
298
+ self .assertEqual (actual_candidate .analysis .components .extra_secondary_designator .status , "confirmed" )
299
+ self .assertEqual (actual_candidate .analysis .components .extra_secondary_designator .change , ["abbreviated" ])
300
+ self .assertEqual (actual_candidate .analysis .components .city_name .status , "confirmed" )
301
+ self .assertIsNone (actual_candidate .analysis .components .city_name .change )
302
+ self .assertEqual (actual_candidate .analysis .components .state_abbreviation .status , "confirmed" )
303
+ self .assertIsNone (actual_candidate .analysis .components .state_abbreviation .change )
304
+ self .assertEqual (actual_candidate .analysis .components .zipcode .status , "confirmed" )
305
+ self .assertIsNone (actual_candidate .analysis .components .zipcode .change )
306
+ self .assertEqual (actual_candidate .analysis .components .plus4_code .status , "confirmed" )
307
+ self .assertIsNone (actual_candidate .analysis .components .plus4_code .change )
308
+ self .assertEqual (actual_candidate .analysis .components .urbanization .status , "unconfirmed" )
309
+ self .assertIsNone (actual_candidate .analysis .components .urbanization .change )
310
+
0 commit comments