Welcome to the Treehouse Community
Looking to learn something new?
Sagar Thakkar8,814 Points
can you help me to understand line no 52 self.assertEqual(resp.status_code,200)
as i am thinking now that resp is an some kind of function witch give a response of 200
Chris FreemanTreehouse Moderator 67,986 Points
I'm guessing that
resp is an object defined previously in the code to hold the response from a web request.
resp.status_code holds the response status, such as, 200 (OK), 404 (Not Found), 500 (Server error).
assertEqual will raise an error if the
status_code does not match the expected value 200.