def METHOD_NAME(parser_class):
    from google.cloud.bigquery.magics.line_arg_parser import ParseError
    from google.cloud.bigquery.magics.line_arg_parser import TokenType
    from google.cloud.bigquery.magics.line_arg_parser.lexer import Token
    # A simple iterable of Tokens is sufficient.
    fake_lexer = [Token(TokenType.EOL, lexeme="", pos=0)]
    parser = parser_class(fake_lexer)
    with pytest.raises(ParseError, match=r"Unexpected end of input.*expected.*COLON.*"):
        parser.consume(TokenType.COLON)