'The connections are different for each thread (#17258).'

def test_connections_thread_local(self):

    connections_dict = {}
    for conn in connections.all():
        connections_dict[id(conn)] = conn
    def runner():
        from django.db import connections
        for conn in connections.all():
            conn.allow_thread_sharing = True
            connections_dict[id(conn)] = conn
    for x in range(2):
        t = threading.Thread(target=runner)
        t.start()
        t.join()
    self.assertEqual(len(connections_dict), 6)
    for conn in connections_dict.values():
        if (conn is not connection):
            conn.close()
