@decorator
def rollback_open_connections(fn, *args, **kw):
 try:
  fn(*args, **kw)
 finally:
  testing_reaper.rollback_all()

@ decorator def rollback_open_connections ( fn , * args , ** kw ) : try : fn ( * args , ** kw ) finally : testing_reaper . rollback_all ( )
decorator that rolls back all open connections after fn execution .