def METHOD_NAME(self):
    expected_error_message = (
        "An error occurred (NotImplemented) when calling the Invoke operation: "
        "invocation-type: DryRun is not supported. RequestResponse is only supported."
    )
    with self.assertRaises(ClientError) as error:
        self.lambda_client.invoke(FunctionName="EchoEventFunction", InvocationType="DryRun")
    self.assertEqual(str(error.exception), expected_error_message)