diff options
author | etobi <git@e-tobi.net> | 2011-09-30 23:12:30 +0200 |
---|---|---|
committer | etobi <git@e-tobi.net> | 2011-09-30 23:12:30 +0200 |
commit | 8f657ae8419ce7aca0426166ced45c6b37854fc7 (patch) | |
tree | 321b07a31128eaf3a8f7152c8ff2605b61d82abb /tests | |
parent | ef9d11bd14ada624435bc5df5fec230a71c9cc6d (diff) | |
download | vdrnfofs-8f657ae8419ce7aca0426166ced45c6b37854fc7.tar.gz vdrnfofs-8f657ae8419ce7aca0426166ced45c6b37854fc7.tar.bz2 |
Fixed file/dir node permissions
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_gettattr.py | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/test_gettattr.py b/tests/test_gettattr.py index 7bae140..321c8ac 100644 --- a/tests/test_gettattr.py +++ b/tests/test_gettattr.py @@ -34,5 +34,18 @@ class TestPathToNodeMapping(unittest.TestCase): def test_root(self): attr = self.fs.getattr('/') - self.assertEqual(stat.S_IFDIR | 0755, attr.st_mode) + self.assertEqual(stat.S_IFDIR | 0555, attr.st_mode) self.assertEqual(2 + 5, attr.st_nlink) + + def test_dir(self): + attr = self.fs.getattr('/folder') + self.assertEqual(stat.S_IFDIR | 0555, attr.st_mode) + self.assertEqual(2 + 6, attr.st_nlink) + + def test_mpg(self): + attr = self.fs.getattr('/sample_2008-03-28.20.13.99.99.rec.mpg') + self.assertEqual(stat.S_IFREG | 0444, attr.st_mode) + + def test_nfo(self): + attr = self.fs.getattr('/sample_2008-03-28.20.13.99.99.rec.nfo') + self.assertEqual(stat.S_IFREG | 0444, attr.st_mode) |