def METHOD_NAME():
    doc = create_doc("Document name", ".pdf")
    with open("documents/tests/files/3pages.pdf", "rb") as fd:
        f = File(fd)
        doc.original.save("silly-unique-deadbeef-file.pdf", f)
    result = process_document.delay(doc.id)
    assert result.status == celery.states.SUCCESS, result.traceback
    doc = Document.objects.get(id=doc.id)  # Get back the updated instance
    assert doc.state == Document.DocumentState.DONE
    assert doc.original.path == doc.pdf.path