'Test that we can issue two queries to the BeeswaxServer in parallel.
However, the test assertion has been plagued by the django test framework,
which does not set request.context in a thread safe manner.
So we check the results by looking at the csv files.'

def test_parallel_queries(self):

    raise SkipTest
    PARALLEL_TASKS = 2
    responses = ([None] * PARALLEL_TASKS)
    threads = []
    lock = threading.Lock()
    for i in range(PARALLEL_TASKS):
        t = threading.Thread(target=self._parallel_query_helper, args=(i, responses, lock, PARALLEL_TASKS))
        t.start()
        threads.append(t)
    for t in threads:
        t.join()
    transaction.commit()
    for i in range(PARALLEL_TASKS):
        csv = get_csv(self.client, responses[i])
        answer = [int(data.strip('"')) for data in csv.split()[1:]]
        assert_equal([(i + 1), (i + 2)], answer)
