def test_unpin_on_no_cookie(self):
        pin_this_thread()
        self.request.method = 'GET'
        self.middleware.process_request(self.request)
        assert not this_thread_is_pinned()
Thread should unpin when cookie is absent and method is GET.
dataset/ETHPy150Open jbalogh/django-multidb-router/multidb/tests.py/MiddlewareTests.test_unpin_on_no_cookie