def testCSRF(self):
    del self.handler.request.headers["X-Requested-With"]
    self.handler.post()
    self.assertEquals(httplib.FORBIDDEN, self.handler.response.status)
Test that we check the X-Requested-With header.
dataset/ETHPy150Open GoogleCloudPlatform/appengine-mapreduce/python/test/mapreduce/handlers_test.py/CleanUpJobTest.testCSRF