diff options
author | Radek Podgorny <radek@podgorny.cz> | 2017-06-15 23:12:17 +0200 |
---|---|---|
committer | Radek Podgorny <radek@podgorny.cz> | 2017-06-15 23:12:17 +0200 |
commit | df79b8e63e751be98bbf70ee27070e2ca52fcba4 (patch) | |
tree | 2e487263bf3d599c49a9966664da8db7904e3804 /test_all.py | |
parent | d8d20c2ea2fd161a181278c08e35ac5c065e4973 (diff) | |
download | unionfs-fuse-git-df79b8e63e751be98bbf70ee27070e2ca52fcba4.tar.gz |
minor test improvements
Diffstat (limited to 'test_all.py')
-rwxr-xr-x | test_all.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test_all.py b/test_all.py index 5309853..a1dd7df 100755 --- a/test_all.py +++ b/test_all.py @@ -477,7 +477,7 @@ class IOCTL_TestCase(Common, unittest.TestCase): self.assertEqual(ex.output, b'') -class UnionFS_RW_RO_COW_Relaxed_TestCase(Common, unittest.TestCase): +class UnionFS_RW_RO_COW_RelaxedPermissions_TestCase(Common, unittest.TestCase): def setUp(self): super().setUp() self.mount('%s -o cow,relaxed_permissions rw1=rw:ro1=ro union' % self.unionfs_path) @@ -485,9 +485,12 @@ class UnionFS_RW_RO_COW_Relaxed_TestCase(Common, unittest.TestCase): def test_access(self): self.assertFalse(os.access('union/file', os.F_OK)) write_to_file('union/file', 'something') - os.chmod('union/file', 0o222) # w--w--w-- + os.chmod('union/file', 0o222) # -w--w--w- + self.assertTrue(os.access('union/file', os.W_OK)) self.assertFalse(os.access('union/file', os.R_OK)) - os.chmod('union/file', 0o444) # r--r--r-- + self.assertFalse(os.access('union/file', os.X_OK)) + os.chmod('union/file', 0o444) # r--r--r-- + self.assertTrue(os.access('union/file', os.R_OK)) self.assertFalse(os.access('union/file', os.W_OK)) self.assertFalse(os.access('union/file', os.X_OK)) |