def METHOD_NAME(self):
    doc = self.create_slides()
    session = SessionFactory(
        name = "session-42-mars-1",
        meeting = Meeting.objects.get(number='42'),
        group = Group.objects.get(acronym='mars'),
        modified = timezone.now(),
    )
    SchedulingEvent.objects.create(
        session=session,
        status=SessionStatusName.objects.create(slug='scheduled'),
        by = Person.objects.get(user__username="marschairman"),
    )
    SessionPresentation.objects.create(session=session, document=doc, rev=doc.rev)
    url = urlreverse('ietf.doc.views_material.edit_material', kwargs=dict(name=doc.name, action="revise"))
    login_testing_unauthorized(self, "secretary", url)
    content = "some text"
    test_file = io.StringIO(content)
    test_file.name = "unnamed.txt"
    # post
    r = self.client.post(url, dict(title="New title",
                                   abstract="New abstract",
                                   state=State.objects.get(type="slides", slug="active").pk,
                                   material=test_file))
    self.assertEqual(r.status_code, 302)
    doc = Document.objects.get(name=doc.name)
    self.assertEqual(doc.rev, "02")
    self.assertEqual(doc.title, "New title")
    self.assertEqual(doc.get_state_slug(), "active")
    with io.open(os.path.join(doc.get_file_path(), doc.name + "-" + doc.rev + ".txt")) as f:
        self.assertEqual(f.read(), content)