(self)
| 974 | |
| 975 | @unittest.skipUnless(hasattr(os, 'umask'), 'test needs os.umask()') |
| 976 | def test_file_permissions(self): |
| 977 | # Verify that message files are created without execute permissions |
| 978 | msg = mailbox.MaildirMessage(self._template % 0) |
| 979 | orig_umask = os.umask(0) |
| 980 | try: |
| 981 | key = self._box.add(msg) |
| 982 | finally: |
| 983 | os.umask(orig_umask) |
| 984 | path = os.path.join(self._path, self._box._lookup(key)) |
| 985 | mode = os.stat(path).st_mode |
| 986 | self.assertFalse(mode & 0o111) |
| 987 | |
| 988 | @unittest.skipUnless(hasattr(os, 'umask'), 'test needs os.umask()') |
| 989 | def test_folder_file_perms(self): |
nothing calls this directly
no test coverage detected