def METHOD_NAME():
    client.load('threads')
    assert 'success' in client.conf(
        '4', 'applications/threads/threads'
    ), 'configure 4 threads'
    socks = []
    for _ in range(4):
        sock = client.get(
            headers={
                'Host': 'localhost',
                'X-Delay': '2',
                'Connection': 'close',
            },
            no_recv=True,
        )
        socks.append(sock)
    threads = set()
    for sock in socks:
        resp = client.recvall(sock).decode('utf-8')
        client.log_in(resp)
        resp = client._resp_to_dict(resp)
        assert resp['status'] == 200, 'status'
        threads.add(resp['headers']['X-Thread'])
        assert resp['headers']['Psgi-Multithread'] == '1', 'multithread'
        sock.close()
    assert len(socks) == len(threads), 'threads differs'