def test_ajax_fall_through_method(self):
        req = self.req(
            "post", "/the/url?filter=value", data={"action-doit": "3"},
            HTTP_X_REQUESTED_WITH="XMLHttpRequest")

        res = self.view(req)

        self.assertEqual(res.request.method, "GET")
        self.assertEqual(res.request.POST, {})
Post-action, ajax req continues with method GET and no POST data.
dataset/ETHPy150Open mozilla/moztrap/tests/view/lists/test_actions.py/ActionsTest.test_ajax_fall_through_method