def test_options()
@m = Mysql.init
assert_equal(@m, @m.options(Mysql::INIT_COMMAND, "SET AUTOCOMMIT=0"))
assert_equal(@m, @m.options(Mysql::OPT_COMPRESS))
assert_equal(@m, @m.options(Mysql::OPT_CONNECT_TIMEOUT, 10))
assert_equal(@m, @m.options(Mysql::GUESS_CONNECTION)) if defined? Mysql::GUESS_CONNECTION
assert_equal(@m, @m.options(Mysql::OPT_LOCAL_INFILE, true))
assert_equal(@m, @m.options(Mysql::OPT_READ_TIMEOUT, 10)) if defined? Mysql::OPT_READ_TIMEOUT
assert_equal(@m, @m.options(Mysql::OPT_USE_EMBEDDED_CONNECTION)) if defined? Mysql::OPT_USE_EMBEDDED_CONNECTION
assert_equal(@m, @m.options(Mysql::OPT_USE_REMOTE_CONNECTION)) if defined? Mysql::OPT_USE_REMOTE_CONNECTION
assert_equal(@m, @m.options(Mysql::OPT_WRITE_TIMEOUT, 10)) if defined? Mysql::OPT_WRITE_TIMEOUT
assert_equal(@m, @m.options(Mysql::READ_DEFAULT_GROUP, "test"))
assert_equal(@m, @m.options(Mysql::SECURE_AUTH, true)) if defined? Mysql::SECURE_AUTH
assert_equal(@m, @m.options(Mysql::SET_CHARSET_NAME, "latin1"))
assert_equal(@m, @m.options(Mysql::SET_CLIENT_IP, "127.0.0.1")) if defined? Mysql::SET_CLIENT_IP
assert_equal(@m, @m.connect(@host, @user, @pass, @db, @port, @sock, @flag))
@m.close
end