def test_no_option(self, mock_create): """Function: test_no_option Description: Test with no option selected. Arguments: """ mock_create.return_value = (self.master, self.slave_list) self.assertFalse(mysql_rep_change.run_program(self.args_array, self.func_dict))
def test_with_option_fails(self, mock_create): """Function: test_with_option_fails Description: Test with option failing. Arguments: """ mock_create.return_value = (self.master, self.slave_list) with gen_libs.no_std_out(): self.assertFalse(mysql_rep_change.run_program(self.args_array4, self.func_dict))
def test_no_master_conn(self, mock_create): """Function: test_no_master_conn Description: Test with no master connection. Arguments: """ mock_create.return_value = (self.master2, self.slave_list) with gen_libs.no_std_out(): self.assertFalse(mysql_rep_change.run_program(self.args_array2, self.func_dict))