Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Cisco Certified DevNet Associate (DEVASC) · Cisco
Drag & Drop Scenario
Read the scenario requirements and decide your answer. Click Check Answer below to see the marked solution.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
"response.content" won't return the content type, "response.content_type" doesn't exist. This question has no correct answer as long as we have only the listed options.
Best matching are: status_code 200 content none "status_code = response.status_code" wouldn't work though, since "response" is not defined. It' named "resp" in the line before. Also "self.assertEqual(resp.content, 'application/json')" will always fail, since the response content-type is part of the header. The correct way would be: self.assertEqual(resp.headers["content-type"], 'application/json')
status_code 200 content_type none