mirror of
https://github.com/certbot/certbot.git
synced 2026-06-08 08:12:15 -04:00
Don't use _private functions in tests.
This commit is contained in:
parent
e9f879a443
commit
ece1f6a24d
1 changed files with 5 additions and 1 deletions
|
|
@ -70,7 +70,11 @@ class ErrorHandlerTest(unittest.TestCase):
|
|||
def test_bad_recovery(self):
|
||||
bad_func = mock.MagicMock(side_effect=[ValueError])
|
||||
self.handler.register(bad_func)
|
||||
self.handler._call_registered()
|
||||
try:
|
||||
with self.handler:
|
||||
raise ValueError
|
||||
except ValueError:
|
||||
pass
|
||||
self.init_func.assert_called_once_with(*self.init_args,
|
||||
**self.init_kwargs)
|
||||
bad_func.assert_called_once_with()
|
||||
|
|
|
|||
Loading…
Reference in a new issue