mirror of
https://github.com/certbot/certbot.git
synced 2026-06-07 15:52:08 -04:00
Fixed reporter coverage
This commit is contained in:
parent
1a63c774d1
commit
3f1c6e4a9c
1 changed files with 7 additions and 0 deletions
|
|
@ -17,6 +17,13 @@ class ReporterTest(unittest.TestCase):
|
|||
def tearDown(self):
|
||||
sys.stdout = self.old_stdout
|
||||
|
||||
def test_multiline_message(self):
|
||||
self.reporter.add_message("Line 1\nLine 2", self.reporter.LOW_PRIORITY)
|
||||
self.reporter.atexit_print_messages()
|
||||
output = sys.stdout.getvalue()
|
||||
self.assertTrue("Line 1\n" in output)
|
||||
self.assertTrue("Line 2" in output)
|
||||
|
||||
def test_tty_print_empty(self):
|
||||
sys.stdout.isatty = lambda: True
|
||||
self.test_no_tty_print_empty()
|
||||
|
|
|
|||
Loading…
Reference in a new issue