def print_test(method):
 def run(*args, **kw):
  ts = time.time()
  print (' DCTB testing function %r' % method.__name__)
  method(*args, **kw)
  te = time.time()
  print (' DCTB [OK] in %r %2.2f sec' % (method.__name__, (te - ts)))
 return run

def print_test ( method ) : def run ( * args , ** kw ) : ts = time . time ( ) print ( ' DCTB testing function %r' % method . __name__ ) method ( * args , ** kw ) te = time . time ( ) print ( ' DCTB [OK] in %r %2.2f sec' % ( method . __name__ , ( te - ts ) ) ) return run
utility method for print verbalizing test suite .