def test_no_tty_print_empty(self):
        self.reporter.print_messages()
        self.assertEqual(sys.stdout.getvalue(), "")
        try:
            raise ValueError
        except __HOLE__:
            self.reporter.print_messages()
        self.assertEqual(sys.stdout.getvalue(), "")
dataset/ETHPy150Open letsencrypt/letsencrypt/certbot/tests/reporter_test.py/ReporterTest.test_no_tty_print_empty