def testContext(self):
    self.handler.request.headers["X-AppEngine-TaskExecutionCount"] = 5
    TestEntity().put()

    m = mox.Mox()
    m.StubOutWithMock(context.Context, "_set", use_mock_anything=True)

    context.Context._set(MatchesContext(task_retry_count=5))
    context.Context._set(None)

    m.ReplayAll()
    try: # test, verify
      self.handler.post()
      m.VerifyAll()
    finally:
      m.UnsetStubs()
Echoes the message to the console
dataset/ETHPy150Open GoogleCloudPlatform/appengine-mapreduce/python/test/mapreduce/handlers_test.py/MapperWorkerCallbackHandlerTest.testContext--crossover with--dataset/ETHPy150Open brousch/sl4a_pydroid_mock_api/src/android/ttsspeak.py/ttsSpeak_notts