

def test_action_redirects_with_querystring(self):
    'Post-action redirect includes querystring.'
    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')

dataset/ETHPy150Open mozilla/moztrap/tests/view/lists/test_actions.py ActionsTest.test_action_redirects_with_querystring/original