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.
self.assertTrue(set(child.items()).issubset(set(parent.items())))
    @mock.patch("tempfile.NamedTemporaryFile")
    def test_lambda_output(self, temp):
        stderr = """START RequestId: 14c6eaeb-9183-4461-b520-10c4c64a2b07 Version: $LATEST
        2022-01-27T12:57:39.071Z	14c6eaeb-9183-4461-b520-10c4c64a2b07 INFO {}
        2022-01-27T12:57:39.071Z	14c6eaeb-9183-4461-b520-10c4c64a2b07 INFO {
        callbackWaitsForEmptyEventLoop: [Getter/Setter], succeed: [Function (anonymous)],
        fail: [Function (anonymous)], done: [Function (anonymous)], functionVersion: '$LATEST',
        functionName: 'hello', memoryLimitInMB: '128', logGroupName: '/aws/lambda/hello',
        logStreamName: '2022/01/27/[$LATEST]44deffbc11404f459e2cf38bb2fae611', clientContext:
        undefined, identity: undefined, invokedFunctionArn:
        'arn:aws:lambda:eu-west-1:659676821118:function:hello', awsRequestId:
        '14c6eaeb-9183-4461-b520-10c4c64a2b07', getRemainingTimeInMillis: [Function:
        getRemainingTimeInMillis] } END RequestId: 14c6eaeb-9183-4461-b520-10c4c64a2b07 REPORT
        RequestId: 14c6eaeb-9183-4461-b520-10c4c64a2b07	Duration: 1.61 ms	Billed Duration: 2
        ms	Memory Size: 128 MB	Max Memory Used: 58 MB """
        output = OutputLog(stdout='{"hello":"world"}', stderr=stderr)
        self.assertEqual('{"hello":"world"}', output.stdout_formatted())
        self.assertEqual("START...", output.stderr_formatted(truncated_to=5))
        output.output_file()
        temp.assert_called_once_with(
            dir=config.dirs.tmp, delete=False, suffix=".log", prefix="lambda_"
        )
class TestLambdaEventInvokeConfig(unittest.TestCase):
    CODE_SIZE = 50
    CODE_SHA_256 = "/u60ZpAA9bzZPVwb8d4390i5oqP1YAObUwV03CZvsWA="
    MEMORY_SIZE = 128
    ROLE = lambda_api.LAMBDA_TEST_ROLE