mirror of
https://github.com/certbot/certbot.git
synced 2026-06-08 08:12:15 -04:00
Check that ErrorHandler raises exception.
This commit is contained in:
parent
5e4f250110
commit
8333829bbe
1 changed files with 3 additions and 1 deletions
|
|
@ -46,7 +46,9 @@ class ErrorHandlerTest(unittest.TestCase):
|
|||
with self.handler:
|
||||
raise ValueError
|
||||
except ValueError:
|
||||
pass
|
||||
exception_raised = True
|
||||
|
||||
self.assertTrue(exception_raised)
|
||||
self.init_func.assert_called_once_with(*self.init_args,
|
||||
**self.init_kwargs)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue