def METHOD_NAME(self):
    document = DocumentFactory.create(
        team=self.owner_team, public=True, listed=False
    )
    self.client.logout()
    url = reverse("document-set_title", kwargs={"pk": document.pk})
    response = self.client.post(url, data={"title": "MARKER"})
    self.assertForbidden(response)
    self.client.force_login(self.user)
    url = reverse("document-set_title", kwargs={"pk": document.pk})
    response = self.client.post(url, data={"title": "MARKER"})
    self.assertEqual(response.status_code, 302)
    document.refresh_from_db()
    self.assertEqual(document.title, "MARKER")
    url = reverse("document-set_title", kwargs={"pk": document.pk})
    response = self.client.post(
        url, data={"description": "MARKER"}
    )  # Wrong form field
    self.assertEqual(response.status_code, 400)