async def METHOD_NAME():
    @dataclasses.dataclass
    class ExampleContext(Context):
        title: str
        status: int
        error: str
    context = ExampleContext(title="Hello", status=200, error="Error message")
    ds = Datasette(memory=True)
    await ds.invoke_startup()
    rendered = await ds.render_template("error.html", context)
    assert "<h1>Hello</h1>" in rendered
    assert "Error message" in rendered