Write Python tests with reusable pytest fixtures.
Recent revisions are kept. Restoring one creates a new revision.