Commit 5bd02f37 by willmcgugan@gmail.com

mountfs tests

parent f9490efc
...@@ -73,3 +73,11 @@ class TestMountFS(unittest.TestCase): ...@@ -73,3 +73,11 @@ class TestMountFS(unittest.TestCase):
# Check unount a second time is a null op, and returns False # Check unount a second time is a null op, and returns False
self.assertFalse(mount_fs.unmount("bar.txt")) self.assertFalse(mount_fs.unmount("bar.txt"))
def test_empty(self):
"""Test MountFS with nothing mounted."""
mount_fs = MountFS()
self.assertEqual(mount_fs.getinfo(''), {})
self.assertEqual(mount_fs.getxattr('', 'yo'), None)
self.assertEqual(mount_fs.listdir(), [])
self.assertEqual(list(mount_fs.ilistdir()), [])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment