def testNoShardState(self):
    self.shard_state.delete()
    e1 = TestEntity()
    e1.put()

    self._handle_request(expect_finalize=False)

    # no state => no data processed
    self.assertEquals([], TestHandler.processed_keys)
    self.assertEquals(0, len(self.taskqueue.GetTasks("default")))
Correct handling of missing shard state.
dataset/ETHPy150Open GoogleCloudPlatform/appengine-mapreduce/python/test/mapreduce/handlers_test.py/MapperWorkerCallbackHandlerTest.testNoShardState