Exemple #1
0
    def test_crt_dump_cmd(self):
        """Function:  test_crt_dump_cmd

        Description:  Test with only default arguments passed.

        Arguments:

        """

        self.assertEqual(
            mysql_db_dump.crt_dump_cmd(self.server, [], self.opt_arg_list,
                                       self.opt_dump_list), self.results)
Exemple #2
0
    def test_empty_opt_arg_list(self):
        """Function:  test_empty_opt_arg_list

        Description:  Test with empty opt_arg_list list.

        Arguments:

        """

        self.assertEqual(
            mysql_db_dump.crt_dump_cmd(self.server, self.args_array, [],
                                       self.opt_dump_list), self.results3)
Exemple #3
0
    def test_p_option(self):
        """Function:  test_p_option

        Description:  Test with -p option passed.

        Arguments:

        """

        self.assertEqual(
            mysql_db_dump.crt_dump_cmd(self.server, self.args_array,
                                       self.opt_arg_list, self.opt_dump_list),
            self.results2)
Exemple #4
0
    def test_multiple_opt_arg_list(self):
        """Function:  test_multiple_opt_arg_list

        Description:  Test with multiple entries in list.

        Arguments:

        """

        self.assertEqual(
            mysql_db_dump.crt_dump_cmd(self.server, self.args_array,
                                       self.opt_arg_list2, self.opt_dump_list),
            self.results4)