

def test_ajax_no_redirect(self):
    "Ajax request doesn't redirect post-action."
    req = self.req('post', '/the/url?filter=value', data={
        'action-doit': '3',
    }, HTTP_X_REQUESTED_WITH='XMLHttpRequest')
    res = self.view(req)
    self.assertEqual(self.status_code, 200)

dataset/ETHPy150Open mozilla/moztrap/tests/view/lists/test_actions.py ActionsTest.test_ajax_no_redirect/VarMisuse@51/97 `res`->`self`