def _test_update_no_contact(self, args):
    'Utility to assert that email removal is handled correctly'
    (_, mock_storage, mock_regr) = self._prepare_mock_account()
    result = self._call(args)
    self.assertIsNone(result)
    self.assertEqual(self.mocks['client'].Client().acme.update_registration.call_count, 1)
    mock_regr.body.update.assert_called_with(contact=())
    self.assertEqual(mock_storage.update_regr.call_count, 1)
    self.mocks['notify'].assert_called_with('Any contact information associated with this account has been removed.')
    self.mocks['prepare_sub'].assert_not_called()
Utility to assert that email removal is handled correctly
def _test_update_no_contact(self, args):
    
    (_, mock_storage, mock_regr) = self._prepare_mock_account()
    result = self._call(args)
    self.assertIsNone(result)
    self.assertEqual(self.mocks['client'].Client().acme.update_registration.call_count, 1)
    mock_regr.body.update.assert_called_with(contact=())
    self.assertEqual(mock_storage.update_regr.call_count, 1)
    self.mocks['notify'].assert_called_with('Any contact information associated with this account has been removed.')
    self.mocks['prepare_sub'].assert_not_called()