Part of lp.testing
Note that a transaction.commit() call is needed before a new file is readable from the librarian.