diff --git a/certbot/account.py b/certbot/account.py index 669fd5e80..4b5f48411 100644 --- a/certbot/account.py +++ b/certbot/account.py @@ -82,7 +82,7 @@ class Account(object): # pylint: disable=too-few-public-methods self.meta == other.meta) -def report_new_account(acc, config): +def report_new_account(config): """Informs the user about their new ACME account.""" reporter = zope.component.queryUtility(interfaces.IReporter) if reporter is None: diff --git a/certbot/client.py b/certbot/client.py index 26c5e87a9..95882a9fc 100644 --- a/certbot/client.py +++ b/certbot/client.py @@ -137,7 +137,7 @@ def register(config, account_storage, tos_cb=None): regr = acme.agree_to_tos(regr) acc = account.Account(regr, key) - account.report_new_account(acc, config) + account.report_new_account(config) account_storage.save(acc) eff.handle_subscription(config) diff --git a/certbot/tests/account_test.py b/certbot/tests/account_test.py index e45fbe6ea..8ed591c98 100644 --- a/certbot/tests/account_test.py +++ b/certbot/tests/account_test.py @@ -62,13 +62,10 @@ class ReportNewAccountTest(unittest.TestCase): def setUp(self): self.config = mock.MagicMock(config_dir="/etc/letsencrypt") - reg = messages.Registration.from_data(email="rhino@jungle.io") - self.acc = mock.MagicMock(regr=messages.RegistrationResource( - uri=None, new_authzr_uri=None, body=reg)) def _call(self): from certbot.account import report_new_account - report_new_account(self.acc, self.config) + report_new_account(self.config) @mock.patch("certbot.account.zope.component.queryUtility") def test_no_reporter(self, mock_zope):