Ejemplo n.º 1
0
def test_windows_file_urls():
    url = 'file:///c:/WINDOWS/clock.avi'
    assert utils.is_url(url)
    assert utils.file_url_to_path(
        url,
        verify_exists=False) == 'c:/WINDOWS/clock.avi', utils.file_url_to_path(
            url)
Ejemplo n.º 2
0
def test_windows_file_urls():
    url = 'file:///c:/WINDOWS/clock.avi'
    assert utils.is_url(url)
    assert utils.file_url_to_path(url, verify_exists=False).get('path',None) == 'c:/WINDOWS/clock.avi', utils.file_url_to_path(url)
Ejemplo n.º 3
0
def test_windows_file_urls():
    url = "file:///c:/WINDOWS/clock.avi"
    assert utils.is_url(url)
    assert utils.file_url_to_path(url, verify_exists=False) == "c:/WINDOWS/clock.avi", utils.file_url_to_path(url)
def test_windows_file_urls():
    url = 'file:///c:/WINDOWS/clock.avi'
    assert_true(utils.is_url(url))
    assert_equals(utils.file_url_to_path(url, verify_exists=False), 'c:/WINDOWS/clock.avi', utils.file_url_to_path(url))