mirror of
https://github.com/certbot/certbot.git
synced 2026-06-08 16:22:18 -04:00
Simpler log_test
This commit is contained in:
parent
7e0cee00b2
commit
3f9ddd03d2
1 changed files with 2 additions and 2 deletions
|
|
@ -25,12 +25,12 @@ class DialogHandlerTest(unittest.TestCase):
|
|||
|
||||
def test_wraps_nospace_is_greedy(self):
|
||||
assert len('1234567') > self.handler.width
|
||||
self.handler.emit(mock.MagicMock(msg='1234%s', args=(567,)))
|
||||
self.handler.emit(mock.MagicMock(msg='1234567'))
|
||||
self.d.infobox.assert_called_once_with('123456\n7', mock.ANY, mock.ANY)
|
||||
|
||||
def test_wraps_at_whitespace(self):
|
||||
assert len('123 567') > self.handler.width
|
||||
self.handler.emit(mock.MagicMock(msg='123 %s', args=(567,)))
|
||||
self.handler.emit(mock.MagicMock(msg='123 567'))
|
||||
self.d.infobox.assert_called_once_with('123\n567', mock.ANY, mock.ANY)
|
||||
|
||||
def test_only_last_lines_are_printed(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue