def url_to_path(value):

    mediaurl_re = re.compile(r'^(%s)' % (MEDIA_URL))
    value = mediaurl_re.sub('', value)
    return value
Stubs out methods from XenAPISession.
dataset/ETHPy150Open stephenmcd/filebrowser-safe/filebrowser_safe/functions.py/url_to_path--crossover with--dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/virt/xenapi/stubs.py/stubout_session