Cisco
200-901 · Question #665
Drag and Drop Question Drag and drop the code snippets from the bottom onto the blanks in the Python script to construct a unit test that checks the API response. Not all options are used. Answer:
Sign in or unlock 200-901 to reveal the answer and full explanation for question #665. The question stem and answer options stay visible for context.
Understanding and Using APIs
Question
Drag and Drop Question Drag and drop the code snippets from the bottom onto the blanks in the Python script to construct a unit test that checks the API response. Not all options are used. Answer:
Exhibit
Answer Area
Drag items
resp.status_codeself.assertTrueresp.status_codesresp.content_typeself.assertFalseresp.content_data
Unlock 200-901 to see the answer
You've previewed enough free 200-901 questions. Unlock 200-901 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#Python Unit Testing#API Response Validation#unittest framework#HTTP Status Codes
