def METHOD_NAME(self):
    self.request.audit_doc = audit_doc = FakeAuditDoc(user=None)
    self.request.couch_user = Config(username="couch_user")
    with configured_middleware() as ware:
        ware(self.request)
    self.assertEqual(audit_doc.status_code, 200)
    self.assertEqual(audit_doc.user, "couch_user")
    self.assertEqual(audit_doc.save_count, 1)