Пример #1
0
    def test_json_no_std(self):
        """Function:  test_json_no_std

        Description:  Test with JSON on and no standard out.

        Arguments:

        """

        self.assertFalse(
            mysql_perf._process_json(self.jdata, self.ofile2, self.mail2,
                                     self.mode, self.no_std))
Пример #2
0
    def test_mail_json(self):
        """Function:  test_mail_json

        Description:  Test with email in JSON format.

        Arguments:

        """

        self.assertFalse(
            mysql_perf._process_json(self.jdata, self.ofile2, self.mail,
                                     self.mode, self.no_std))
Пример #3
0
    def test_json_file(self, mock_file):
        """Function:  test_json_file

        Description:  Test with JSON on and output to a file.

        Arguments:

        """

        mock_file.return_value = True

        self.assertFalse(
            mysql_perf._process_json(self.jdata, self.ofile, self.mail2,
                                     self.mode, self.no_std))
Пример #4
0
    def test_json_std_out(self, mock_print):
        """Function:  test_json_nostd

        Description:  Test with JSON on and standard out.

        Arguments:

        """

        mock_print.return_value = True

        self.assertFalse(
            mysql_perf._process_json(self.jdata, self.ofile2, self.mail2,
                                     self.mode, self.no_std2))