@@ -65,7 +65,7 @@ def __eq__(self, other):
6565assert fs .isDriveRoot ('rom' ) is True
6666assert fs .isDriveRoot ('tdir' ) is False
6767assert fs .isDriveRoot ('tfile' ) is False
68- assert fs .isDriveRoot ('doesnotexist' ) is True # wtf?
68+ assert fs .isDriveRoot ('doesnotexist' ) is False
6969
7070assert fs .getName ('a/b/c/d' ) == 'd'
7171assert fs .getName ('a/b/c/' ) == 'c'
@@ -86,8 +86,8 @@ def __eq__(self, other):
8686assert fs .getDir ('/' ) == '..'
8787assert fs .getDir ('///' ) == '..'
8888assert fs .getDir ('.' ) == '..'
89- assert fs .getDir ('..' ) == ''
90- assert fs .getDir ('../../..' ) == '../..'
89+ assert fs .getDir ('..' ) == '../.. '
90+ assert fs .getDir ('../../..' ) == '../../../.. '
9191
9292assert fs .combine ('a' , 'b' ) == 'a/b'
9393assert fs .combine ('a/' , 'b' ) == 'a/b'
@@ -175,8 +175,8 @@ def __eq__(self, other):
175175 assert f .readLine () == 'line'
176176 assert f .read (1 ) is None
177177 assert f .readLine () is None
178- assert f .readAll () is None
179- assert f .readAll () is None
178+ assert f .readAll () == ''
179+ assert f .readAll () == ''
180180assert fs .getSize ('tdir/banana' ) == 9
181181with fs .open ('tdir/banana' , 'a' ) as f :
182182 assert f .write ('x' ) is None
0 commit comments