"""Page reference context for status."""
engine = reference_engine()
ruleset = reference_ruleset(engine)
# Intentional error: the reference backend has no WORK_LIMIT support.
# Supply a real native exception to the displayed Status comparison.
try:
    ruleset.prepare(work_limit=1)
except MaelysDatalogError as caught:
    assert caught.status == Status.UNSUPPORTED
    error = caught
else:
    raise AssertionError("The reference backend unexpectedly accepted work_limit=1")
