@nottest
def make_test_handler(testcase, *args, **kwargs):
 handler = TestHandler(*args, **kwargs)
 testcase.addCleanup(handler.close)
 return handler

@ nottest def make_test_handler ( testcase , * args , ** kwargs ) : handler = TestHandler ( * args , ** kwargs ) testcase . addCleanup ( handler . close ) return handler
returns a testhandler which will be used by the given testcase .