Not bad but you can split this in three views. Checking responded status and content_type is correct but most of all you need to check the content, `response.body` I belive.