(self)
| 987 | |
| 988 | @unittest.skipUnless(hasattr(os, 'umask'), 'test needs os.umask()') |
| 989 | def test_folder_file_perms(self): |
| 990 | # From bug #3228, we want to verify that the file created inside a Maildir |
| 991 | # subfolder isn't marked as executable. |
| 992 | orig_umask = os.umask(0) |
| 993 | try: |
| 994 | subfolder = self._box.add_folder('subfolder') |
| 995 | finally: |
| 996 | os.umask(orig_umask) |
| 997 | |
| 998 | path = os.path.join(subfolder._path, 'maildirfolder') |
| 999 | st = os.stat(path) |
| 1000 | perms = st.st_mode |
| 1001 | self.assertFalse((perms & 0o111)) # Execute bits should all be off. |
| 1002 | |
| 1003 | def test_reread(self): |
| 1004 | # Do an initial unconditional refresh |
nothing calls this directly
no test coverage detected