def test_get_conncheck_manager(self):
    self.patch_object(conncheck, 'get_option', name='mock_get_option')
    self.mock_get_option.return_value = 'a-name'
    self.patch_object(conncheck, 'get_plugin_manager', name='mock_get_plugin_manager')
    self.mock_get_plugin_manager.return_value = 'a-manager'
    self.assertEqual(conncheck.get_conncheck_manager(), 'a-manager')
    self.mock_get_option.assert_called_once_with('zaza-events.modules.conncheck.manager-name', 'DEFAULT')
    self.mock_get_plugin_manager.assert_called_once_with('a-name')
def test_get_conncheck_manager(self):
    self.patch_object(conncheck, 'get_option', name='mock_get_option')
    self.mock_get_option.return_value = 'a-name'
    self.patch_object(conncheck, 'get_plugin_manager', name='mock_get_plugin_manager')
    self.mock_get_plugin_manager.return_value = 'a-manager'
    self.assertEqual(conncheck.get_conncheck_manager(), 'a-manager')
    self.mock_get_option.assert_called_once_with('zaza-events.modules.conncheck.manager-name', 'DEFAULT')
    self.mock_get_plugin_manager.assert_called_once_with('a-name')