Ejemplo n.º 1
0
    def test_no_slave(self):
        """Function:  test_no_slave

        Description:  Test with no slave present.

        Arguments:

        """

        with gen_libs.no_std_out():
            self.assertFalse(mysql_clone.chk_slv_err([]))
Ejemplo n.º 2
0
    def test_io_sql_errors(self):
        """Function:  test_io_sql_errors

        Description:  Test with IO and SQL errors.

        Arguments:

        """

        with gen_libs.no_std_out():
            self.assertFalse(mysql_clone.chk_slv_err(self.slaves))
Ejemplo n.º 3
0
    def test_io_error(self):
        """Function:  test_io_error

        Description:  Test with IO error.

        Arguments:

        """

        self.slave.sql = None

        with gen_libs.no_std_out():
            self.assertFalse(mysql_clone.chk_slv_err(self.slaves))
Ejemplo n.º 4
0
    def test_no_error(self):
        """Function:  test_no_error

        Description:  Test with no errors.

        Arguments:

        """

        self.slave.io_err = None
        self.slave.sql = None

        self.assertFalse(mysql_clone.chk_slv_err(self.slaves))