@mock.patch('certbot._internal.main.display_util.notify')
def test_unregister(self, mock_notify):
    mocked_storage = mock.MagicMock()
    mocked_storage.find_all.return_value = ['an account']
    self.mocks['account'].AccountFileStorage.return_value = mocked_storage
    self.mocks['_determine_account'].return_value = (mock.MagicMock(), 'foo')
    cb_client = mock.MagicMock()
    self.mocks['client'].Client.return_value = cb_client
    config = mock.MagicMock()
    unused_plugins = mock.MagicMock()
    res = main.unregister(config, unused_plugins)
    self.assertTrue((res is None))
    mock_notify.assert_called_once_with('Account deactivated.')
@mock.patch('certbot._internal.main.display_util.notify')
def test_unregister(self, mock_notify):
    mocked_storage = mock.MagicMock()
    mocked_storage.find_all.return_value = ['an account']
    self.mocks['account'].AccountFileStorage.return_value = mocked_storage
    self.mocks['_determine_account'].return_value = (mock.MagicMock(), 'foo')
    cb_client = mock.MagicMock()
    self.mocks['client'].Client.return_value = cb_client
    config = mock.MagicMock()
    unused_plugins = mock.MagicMock()
    res = main.unregister(config, unused_plugins)
    self.assertTrue((res is None))
    mock_notify.assert_called_once_with('Account deactivated.')