mirror of
https://github.com/certbot/certbot.git
synced 2026-03-13 06:02:10 -04:00
Fixed test
This commit is contained in:
parent
1a4d7c1445
commit
3fec57d854
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ class RegisterTest(unittest.TestCase):
|
|||
msg = "Validation of contact mailto:sousaphone@improbablylongggstring.tld failed"
|
||||
mx_err = messages.Error(detail=msg, typ="malformed", title="title")
|
||||
with mock.patch("letsencrypt.client.acme_client.Client") as mock_client:
|
||||
mock_client.register.side_effect = mx_err
|
||||
mock_client().register.side_effect = [mx_err, mock.MagicMock()]
|
||||
self._call()
|
||||
self.assertEqual(mock_get_email.call_count, 1)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue