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