@mock.patch('certbot._internal.main.display_ops.get_email')
def test_update_account_with_email(self, mock_email):
    'Test that updating with a singular email is handled correctly'
    mock_email.return_value = 'example@example.com'
    (_, mock_storage, _) = self._prepare_mock_account()
    mock_client = mock.MagicMock()
    self.mocks['client'].Client.return_value = mock_client
    result = self._call(['update_account'])
    self.assertIsNone(result)
    self.assertEqual(mock_client.acme.update_registration.call_count, 1)
    self.assertEqual(mock_storage.update_regr.call_count, 1)
    self.assertEqual(self.mocks['prepare_sub'].call_count, 1)
    self.mocks['notify'].assert_called_with('Your e-mail address was updated to example@example.com.')
Test that updating with a singular email is handled correctly
@mock.patch('certbot._internal.main.display_ops.get_email')
def test_update_account_with_email(self, mock_email):
    
    mock_email.return_value = 'example@example.com'
    (_, mock_storage, _) = self._prepare_mock_account()
    mock_client = mock.MagicMock()
    self.mocks['client'].Client.return_value = mock_client
    result = self._call(['update_account'])
    self.assertIsNone(result)
    self.assertEqual(mock_client.acme.update_registration.call_count, 1)
    self.assertEqual(mock_storage.update_regr.call_count, 1)
    self.assertEqual(self.mocks['prepare_sub'].call_count, 1)
    self.mocks['notify'].assert_called_with('Your e-mail address was updated to example@example.com.')