While a lambda is still processing (archive unpacking etc), the lambda state should be set to "Pending" (currently "Active") and invocations to that lambda should fail (currently, it can end up in a inconsistent state in this case, like lambdas being executed without layers).

Lambda state should reflect the current internal state, and invocations should fail if not active.
with self.app.test_request_context():
            self._create_function(self.FUNCTION_NAME)
            
            
            
            concurrency_data = {"ReservedConcurrentExecutions": 10}
            response = self.client.put(
                "/2017-10-31/functions/{0}/concurrency".format(self.FUNCTION_NAME),
                data=json.dumps(concurrency_data),
            )
            result = json.loads(response.get_data())
            self.assertDictEqual(concurrency_data, result)
            response = self.client.get(
                "/2019-09-30/functions/{0}/concurrency".format(self.FUNCTION_NAME)
            )
            self.assertDictEqual(concurrency_data, result)
            response = self.client.delete(
                "/2017-10-31/functions/{0}/concurrency".format(self.FUNCTION_NAME)
            )
            self.assertIsNotNone("ReservedConcurrentExecutions", result)
    def test_concurrency_get_function(self):
        with self.app.test_request_context():
            self._create_function(self.FUNCTION_NAME)
            
            
            
            concurrency_data = {"ReservedConcurrentExecutions": 10}
            self.client.put(
                "/2017-10-31/functions/{0}/concurrency".format(self.FUNCTION_NAME),
                data=json.dumps(concurrency_data),