You're getting back JSON, a better test is to do `json.loads(response.content)` which'll give you back a dictionary and do asserts on that?