We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9692d9c commit ea978e8Copy full SHA for ea978e8
tests/__init__.py
@@ -158,6 +158,11 @@ def test_readdir(self):
158
self.fs.create(str(uuid.uuid4()), 0o660)
159
self.assertEqual(len(self.fs.readdir('/', None)), 3 + x)
160
161
+ def test_readdir_nonexistent_directory(self):
162
+ with self.assertRaises(FuseOSError) as context:
163
+ self.fs.readdir("/this_does_not_exist", None)
164
+ self.assertEqual(context.exception.errno, errno.ENOENT)
165
+
166
def test_mkdir_success(self):
167
new_dir_path = "/dir1"
168
self.fs.mkdir(new_dir_path, 0o755)
0 commit comments