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

        res = self.view(req)

        self.assertEqual(res.status_code, 302)
        self.assertEqual(res["Location"], "/the/url?filter=value")
Post-action redirect includes querystring.
dataset/ETHPy150Open mozilla/moztrap/tests/view/lists/test_actions.py/ActionsTest.test_action_redirects_with_querystring