def testOtherApp(self):
    apiproxy_stub_map.apiproxy.GetStub("datastore_v3").SetTrusted(True)
    self.handler.request.set("mapper_params._app", "otherapp")
    TestEntity(_app="otherapp").put()
    self.handler.post()

    # Verify state is created.
    state = model.MapreduceState.get_by_job_id(
        self.handler.json_response["mapreduce_id"])
    self.assertEqual("otherapp", state.app_id)
Verifies main execution path of starting scan over several entities.
dataset/ETHPy150Open GoogleCloudPlatform/appengine-mapreduce/python/test/mapreduce/handlers_test.py/StartJobHandlerTest.testOtherApp