def test_no_accounts_email(self):
    self.config.email = 'other email'
    with mock.patch('certbot._internal.main.client') as client:
        client.register.return_value = (self.accs[1], mock.sentinel.acme)
        self._call()
    self.assertEqual(self.accs[1].id, self.config.account)
    self.assertEqual('other email', self.config.email)
def test_no_accounts_email(self):
    self.config.email = 'other email'
    with mock.patch('certbot._internal.main.client') as client:
        client.register.return_value = (self.accs[1], mock.sentinel.acme)
        self._call()
    self.assertEqual(self.accs[1].id, self.config.account)
    self.assertEqual('other email', self.config.email)