def testNoData(self):
    self.verify_shard_state(
        model.ShardState.get_by_shard_id(self.shard_id), active=True)

    self._handle_request()

    self.assertEquals([], TestHandler.processed_keys)

    self.verify_shard_state(
        model.ShardState.get_by_shard_id(self.shard_id),
        active=False, input_finished=True,
        result_status=model.ShardState.RESULT_SUCCESS)
Test no data to scan case.
dataset/ETHPy150Open GoogleCloudPlatform/appengine-mapreduce/python/test/mapreduce/handlers_test.py/MapperWorkerCallbackHandlerTest.testNoData