def testHandlerUnknown(self):
    self.mapper_spec.handler_spec = "does_not_exists"
    self.assertRaises(ImportError, handlers.StartJobHandler._start_map,
                      self.NAME, self.mapper_spec, self.MAPREDUCE_SPEC_PARAMS,
                      queue_name=self.QUEUE)
Tests when the handler function cannot be found.
dataset/ETHPy150Open GoogleCloudPlatform/appengine-mapreduce/python/test/mapreduce/handlers_test.py/StartJobHandlerFunctionalTest.testHandlerUnknown