Part of lp.testing.faketransaction View In Hierarchy
Use this instead of transaction (or the old Zopeless transaction manager) in tests if you don't really want to commit anything.
transaction
Set log_calls to True to enable printing of commits and aborts.
log_calls