Move the above 2 lines below `self.assertTrue(response.content)` because there is no reason to check properties on the object unless the code is `OK` and there is content in the response.