@decorator
def close_first(fn, *args, **kw):
 testing_reaper.close_all()
 fn(*args, **kw)

@ decorator def close_first ( fn , * args , ** kw ) : testing_reaper . close_all ( ) fn ( * args , ** kw )
decorator that closes all connections before fn execution .