def METHOD_NAME(self):
    print('waiting for second process')
    self.sock, addr = self.__server_socket.accept()
    print('accepted second process')
    from tests_python.debugger_unittest import ReaderThread
    self.reader_thread = ReaderThread(self.sock)
    self.reader_thread.start()
    self._sequence = -1
    # initial command is always the version
    self.write_version()
    self.log.append('start_socket')
    self.write_make_initial_run()
    time.sleep(1)
    seq = self.write_list_threads()
    msg = self.wait_for_list_threads(seq)
    assert msg.thread['name'] == 'MainThread'
    assert msg.thread['id'] == 'console_main'
    self.write_get_frame('console_main', '1')
    self.wait_for_vars([
        [
            '<var name="a" type="int" qualifier="%s" value="int: 10"' % (builtin_qualifier,),
            '<var name="a" type="int"  value="int',  # jython
        ],
    ])
    self.finished_ok = True