provider_class.expects(:mysql).with(["--defaults-extra-file=#{root_home}/.my.cnf",'mysql','-Be',"select * from mysql.user where user='user' and host='host'"]).returns<<-EOT
provider_class.expects(:mysql).with(["--defaults-extra-file=#{root_home}/.my.cnf",'mysql','-Be',"select * from mysql.user where user='user' and host='host'"]).returns<<-EOT
provider_class.expects(:mysql).with(["--defaults-extra-file=#{root_home}/.my.cnf",'mysql','-Be',"select * from mysql.user where user='user' and host='host'"]).returns<<-EOT
provider_class.expects(:mysql).with(["--defaults-extra-file=#{root_home}/.my.cnf",'mysql','-NBe',"SELECT '1' FROM user WHERE user='user' AND host='host'"]).returns"1\n"
provider_class.expects(:mysql).with(["--defaults-extra-file=#{root_home}/.my.cnf",'mysql','-Be',"update user set Select_priv = 'Y', Insert_priv = 'Y', Update_priv = 'Y' where user='user' and host='host'"])
provider_class.expects(:mysql).with(["--defaults-extra-file=#{root_home}/.my.cnf",'mysql','-NBe',"SELECT '1' FROM user WHERE user='user' AND host='host'"]).returns"1\n"
provider_class.expects(:mysql).with(["--defaults-extra-file=#{root_home}/.my.cnf",'mysql','-Be',"update user set Select_priv = 'Y', Insert_priv = 'N', Update_priv = 'Y' where user='user' and host='host'"])
provider_class.expects(:mysql).with(["--defaults-extra-file=#{root_home}/.my.cnf",'mysql','-NBe',"SELECT '1' FROM user WHERE user='user' AND host='host'"]).returns"1\n"
provider_class.expects(:mysql).with(["--defaults-extra-file=#{root_home}/.my.cnf",'mysql','-Be',"update user set Select_priv = 'Y', Insert_priv = 'Y', Update_priv = 'Y' where user='user' and host='host'"])
provider_class.expects(:mysql).with(['mysql','-NBe',"SELECT '1' FROM user WHERE user='user' AND host='host'"]).returns"1\n"
provider_class.expects(:mysql).with(['mysql','-Be',"update user set Select_priv = 'Y', Insert_priv = 'N', Update_priv = 'Y' where user='user' and host='host'"])