def METHOD_NAME(self):
    self.request.user = UserFactory()
    html = render_to_string(self.template, request=self.request)
    doc = pq(html)
    self.assertEqual("false", doc("body")[0].attrib["data-readonly"])