def test_abort_unregister(self):
    self.mocks['account'].AccountFileStorage.return_value = mock.Mock()
    util_mock = self.mocks['get_utility']()
    util_mock.yesno.return_value = False
    config = mock.Mock()
    unused_plugins = mock.Mock()
    res = main.unregister(config, unused_plugins)
    self.assertEqual(res, 'Deactivation aborted.')
def test_abort_unregister(self):
    self.mocks['account'].AccountFileStorage.return_value = mock.Mock()
    util_mock = self.mocks['get_utility']()
    util_mock.yesno.return_value = False
    config = mock.Mock()
    unused_plugins = mock.Mock()
    res = main.unregister(config, unused_plugins)
    self.assertEqual(res, 'Deactivation aborted.')