def test_autoconfigure_with_config(self):
    self.mock_get_plugin_manager.return_value = self.mock_conncheck_manager
    config = {'manager-name': 'a-manager', 'source': 'a-source'}
    conncheck.auto_configure_with_collection(self.mock_collection, config=config)
    self.mock_get_plugin_manager.assert_called_once_with('a-manager')
    self.mock_collection.add_logging_manager.assert_called_once_with(self.mock_conncheck_manager)
    self.mock_conncheck_manager.configure.assert_called_once_with(module_source='a-source')
def test_autoconfigure_with_config(self):
    self.mock_get_plugin_manager.return_value = self.mock_conncheck_manager
    config = {'manager-name': 'a-manager', 'source': 'a-source'}
    conncheck.auto_configure_with_collection(self.mock_collection, config=config)
    self.mock_get_plugin_manager.assert_called_once_with('a-manager')
    self.mock_collection.add_logging_manager.assert_called_once_with(self.mock_conncheck_manager)
    self.mock_conncheck_manager.configure.assert_called_once_with(module_source='a-source')