def test_uri_windows_abs_fail():
    try:
        u = path(r'q:\stuff\file.txt')
    except:
        # Should throw exception since we (probably) are cd'd to q: drive 
        assert True
    else:
        assert False
Exemple #2
0
def test_uri_windows_abs_fail():
    try:
        u = path(r'q:\stuff\file.txt')
    except:
        # Should throw exception since we (probably) are cd'd to q: drive
        assert True
    else:
        assert False
Exemple #3
0
def test_uri_windows_abs_2():
    u = path(r'C:/stuff/file.txt')
    print(u)
    assert type(u) == windows.WindowsPath
Exemple #4
0
def test_uri_windows_abs():
    u = path(r'c:\stuff\file.txt')
    print(u)
    assert type(u) == windows.WindowsPath
Exemple #5
0
def test_uri_posix_rel_2():
    u = path('dir/file.txt')
    print(u)
    assert type(u) == posix.PosixPath
def test_uri_windows_abs():
    u = path(r'c:\stuff\file.txt')
    print(u)
    assert type(u) == windows.WindowsPath
Exemple #7
0
def test_uri_smb_extended():
    u = path(r'\\?\UNC\hostname\share\dirname\filename.txt')
    print(u)
    assert type(u) == smb.SmbPath
Exemple #8
0
def test_uri_windows_rel_3():
    u = path(r'dir\file.txt')
    print(u)
    assert type(u) == windows.WindowsPath
def test_uri_smb_extended():
    u = path(r'\\?\UNC\hostname\share\dirname\filename.txt')
    print(u)
    assert type(u) == smb.SmbPath
def test_uri_windows_rel_extended():
    u = path(r'\\?\looooongdir\file.txt')
    print(u)
    assert type(u) == windows.WindowsPath
def test_uri_windows_rel_3():
    u = path(r'dir\file.txt')
    print(u)
    assert type(u) == windows.WindowsPath
def test_uri_posix_abs():
    u = path('/usr/local/dir/file.txt')
    print(u)
    assert type(u) == posix.PosixPath
def test_uri_windows_abs_extended():
    u = path(r'\\?\C:\stuff\file.txt')
    print(u)
    assert type(u) == windows.WindowsPath
def test_uri_windows_abs_2():
    u = path(r'C:/stuff/file.txt')
    print(u)
    assert type(u) == windows.WindowsPath
Exemple #15
0
def test_uri_windows_abs_extended():
    u = path(r'\\?\C:\stuff\file.txt')
    print(u)
    assert type(u) == windows.WindowsPath
def test_uri_rsync_daemon():
    u = path('username@hostname::/x/y/z')
    print(u)
    assert type(u) == rsync.RsyncPath
Exemple #17
0
def test_uri_posix_abs():
    u = path('/usr/local/dir/file.txt')
    print(u)
    assert type(u) == posix.PosixPath
def test_uri_rsync_p():
    u = path('rsync://username@hostname:/x/y/z')
    print(u)
    assert type(u) == rsync.RsyncPath
Exemple #19
0
def test_uri_windows_rel_extended():
    u = path(r'\\?\looooongdir\file.txt')
    print(u)
    assert type(u) == windows.WindowsPath
Exemple #20
0
def test_uri_rsync_p():
    u = path('rsync://username@hostname:/x/y/z')
    print(u)
    assert type(u) == rsync.RsyncPath
Exemple #21
0
def test_uri_rsync_daemon():
    u = path('username@hostname::/x/y/z')
    print(u)
    assert type(u) == rsync.RsyncPath
def test_uri_posix_rel_2():
    u = path('dir/file.txt')
    print(u)
    assert type(u) == posix.PosixPath