

def setUp(self):
    self._threads = test_support.threading_setup()
    DocXMLRPCServer._send_traceback_header = True
    self.evt = threading.Event()
    threading.Thread(target=server, args=(self.evt, 1)).start()
    n = 1000
    while ((n > 0) and (PORT is None)):
        time.sleep(0.001)
        n -= 1
    self.client = httplib.HTTPConnection(('localhost:%d' % PORT))

dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/test/test_docxmlrpc.py DocXMLRPCHTTPGETServer.setUp/original