Esempio n. 1
0
    def test_interval_two(self, mock_process):

        """Function:  test_interval_two

        Description:  Test with -b option set to > one.

        Arguments:

        """

        mock_process.return_value = True

        self.assertFalse(mysql_perf.mysql_stat(self.server, self.args_array6))
Esempio n. 2
0
    def test_email(self, mock_process, mock_mail):

        """Function:  test_email

        Description:  Test with email option set.

        Arguments:

        """

        mock_process.return_value = True
        mock_mail.return_value = self.mail

        self.assertFalse(mysql_perf.mysql_stat(self.server, self.args_array11))
Esempio n. 3
0
    def test_email_no_subj(self, mock_process, mock_mail):

        """Function:  test_email_no_subj

        Description:  Test with email but no subject in args.

        Arguments:

        """

        mock_process.return_value = True
        mock_mail.return_value = self.mail

        self.assertFalse(mysql_perf.mysql_stat(self.server, self.args_array12))