def test_pin_on_post(self):
        self.request.method = 'POST'
        self.middleware.process_request(self.request)
        assert this_thread_is_pinned()
Thread should pin when method is POST.
dataset/ETHPy150Open jbalogh/django-multidb-router/multidb/tests.py/MiddlewareTests.test_pin_on_post