def METHOD_NAME():
    doc = create_doc("Document name2", ".pdf")
    doc.md5 = "8be98044ac25f3050b121aceac618823"
    doc.save()
    duplicate = create_doc("Document name2", ".pdf")
    with open("documents/tests/files/3pages.pdf", "rb") as fd:
        f = File(fd)
        duplicate.original.save("another-uuid-beef-dead.pdf", f)
    result = tasks.checksum.delay(duplicate.id)
    assert result.status == celery.states.FAILURE
    assert "ExisingChecksum" in result.traceback
    assert Document.objects.filter(id=duplicate.id).count() == 0