示例#1
0
def test_DriveType():
    assert fs.Drive("C:").type == win32file.GetDriveTypeW("C:")
示例#2
0
def test_DriveNameForward():
    assert fs.Drive("C:/").name == u"C:\\"
示例#3
0
def test_DriveNameBack():
    assert fs.Drive("C:\\").name == u"C:\\"
示例#4
0
def test_DriveName():
    assert fs.Drive("C:").name == u"C:\\"
示例#5
0
def test_DriveRoot():
    assert fs.Drive("C:").root() == fs.dir(u"C:\\")
示例#6
0
def test_Drive_as_String():
    assert unicode(fs.Drive("C:")) == u'Drive C:\\'