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