示例#1
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
示例#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
示例#3
0
def test_uri_windows_abs_2():
    u = path(r'C:/stuff/file.txt')
    print(u)
    assert type(u) == windows.WindowsPath
示例#4
0
def test_uri_windows_abs():
    u = path(r'c:\stuff\file.txt')
    print(u)
    assert type(u) == windows.WindowsPath
示例#5
0
def test_uri_posix_rel_2():
    u = path('dir/file.txt')
    print(u)
    assert type(u) == posix.PosixPath
示例#6
0
def test_uri_windows_abs():
    u = path(r'c:\stuff\file.txt')
    print(u)
    assert type(u) == windows.WindowsPath
示例#7
0
def test_uri_smb_extended():
    u = path(r'\\?\UNC\hostname\share\dirname\filename.txt')
    print(u)
    assert type(u) == smb.SmbPath
示例#8
0
def test_uri_windows_rel_3():
    u = path(r'dir\file.txt')
    print(u)
    assert type(u) == windows.WindowsPath
示例#9
0
def test_uri_smb_extended():
    u = path(r'\\?\UNC\hostname\share\dirname\filename.txt')
    print(u)
    assert type(u) == smb.SmbPath
示例#10
0
def test_uri_windows_rel_extended():
    u = path(r'\\?\looooongdir\file.txt')
    print(u)
    assert type(u) == windows.WindowsPath
示例#11
0
def test_uri_windows_rel_3():
    u = path(r'dir\file.txt')
    print(u)
    assert type(u) == windows.WindowsPath
示例#12
0
def test_uri_posix_abs():
    u = path('/usr/local/dir/file.txt')
    print(u)
    assert type(u) == posix.PosixPath
示例#13
0
def test_uri_windows_abs_extended():
    u = path(r'\\?\C:\stuff\file.txt')
    print(u)
    assert type(u) == windows.WindowsPath
示例#14
0
def test_uri_windows_abs_2():
    u = path(r'C:/stuff/file.txt')
    print(u)
    assert type(u) == windows.WindowsPath
示例#15
0
def test_uri_windows_abs_extended():
    u = path(r'\\?\C:\stuff\file.txt')
    print(u)
    assert type(u) == windows.WindowsPath
示例#16
0
def test_uri_rsync_daemon():
    u = path('username@hostname::/x/y/z')
    print(u)
    assert type(u) == rsync.RsyncPath
示例#17
0
def test_uri_posix_abs():
    u = path('/usr/local/dir/file.txt')
    print(u)
    assert type(u) == posix.PosixPath
示例#18
0
def test_uri_rsync_p():
    u = path('rsync://username@hostname:/x/y/z')
    print(u)
    assert type(u) == rsync.RsyncPath
示例#19
0
def test_uri_windows_rel_extended():
    u = path(r'\\?\looooongdir\file.txt')
    print(u)
    assert type(u) == windows.WindowsPath
示例#20
0
def test_uri_rsync_p():
    u = path('rsync://username@hostname:/x/y/z')
    print(u)
    assert type(u) == rsync.RsyncPath
示例#21
0
def test_uri_rsync_daemon():
    u = path('username@hostname::/x/y/z')
    print(u)
    assert type(u) == rsync.RsyncPath
示例#22
0
def test_uri_posix_rel_2():
    u = path('dir/file.txt')
    print(u)
    assert type(u) == posix.PosixPath