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.UNKNOWN, lexeme="@!#", pos=2),
        Token(TokenType.EOL, lexeme="", pos=5),
    ]
    parser = parser_class(fake_lexer)
    with pytest.raises(ParseError, match=r"Unknown.*position 2.*@!#.*"):
        parser.destination_var()