def test_get_plugin_manager_non_default(self):
    self.patch_object(conncheck, '_conncheck_plugin_managers', new={})
    self.patch_object(conncheck, 'ConnCheckPluginManager', name='mock_ConnCheckPluginManager')
    self.mock_ConnCheckPluginManager.return_value = 'a-manager'
    self.assertEqual(conncheck.get_plugin_manager('a-name'), 'a-manager')
    self.mock_ConnCheckPluginManager.assert_called_once_with(managed_name='a-name')
def test_get_plugin_manager_non_default(self):
    self.patch_object(conncheck, '_conncheck_plugin_managers', new={})
    self.patch_object(conncheck, 'ConnCheckPluginManager', name='mock_ConnCheckPluginManager')
    self.mock_ConnCheckPluginManager.return_value = 'a-manager'
    self.assertEqual(conncheck.get_plugin_manager('a-name'), 'a-manager')
    self.mock_ConnCheckPluginManager.assert_called_once_with(managed_name='a-name')