(self)
| 3416 | self.assertGreaterEqual(path.stat().st_mtime, now) |
| 3417 | |
| 3418 | def test_extractall_none_mode(self): |
| 3419 | # modes of directories and regular files should match the mode |
| 3420 | # of a "normally" created directory or regular file |
| 3421 | dir_mode = pathlib.Path(TEMPDIR).stat().st_mode |
| 3422 | regular_file = pathlib.Path(TEMPDIR) / 'regular_file' |
| 3423 | regular_file.write_text('') |
| 3424 | regular_file_mode = regular_file.stat().st_mode |
| 3425 | with self.extract_with_none('mode') as DIR: |
| 3426 | for path in pathlib.Path(DIR).glob('**/*'): |
| 3427 | with self.subTest(path=path): |
| 3428 | if path.is_dir(): |
| 3429 | self.assertEqual(path.stat().st_mode, dir_mode) |
| 3430 | elif path.is_file(): |
| 3431 | self.assertEqual(path.stat().st_mode, |
| 3432 | regular_file_mode) |
| 3433 | |
| 3434 | def test_extractall_none_uid(self): |
| 3435 | with self.extract_with_none('uid'): |
nothing calls this directly
no test coverage detected