def METHOD_NAME(self, exc_name):
    plugin_name = 'OMF'
    plugin_lib_path = 'fledge/plugins/north/{}/lib{}'.format(plugin_name, plugin_name)
    with patch.object(utils, '_find_c_lib', return_value=plugin_lib_path) as patch_lib:
        with patch.object(utils.subprocess, "Popen", side_effect=exc_name):
            with patch.object(utils._logger, 'error') as patch_logger:
                assert {} == utils.get_plugin_info(plugin_name, dir='south')
            assert 1 == patch_logger.call_count
            args = patch_logger.call_args
            assert '{} C plugin get info failed.'.format(plugin_name) == args[0][1]
    patch_lib.assert_called_once_with(plugin_name, 'south')