(self)
| 3405 | self.assertEqual(zi.file_size, os.path.getsize(__file__)) |
| 3406 | |
| 3407 | def test_from_file_pathlike(self): |
| 3408 | zi = zipfile.ZipInfo.from_file(FakePath(__file__)) |
| 3409 | self.assertEqual(posixpath.basename(zi.filename), 'test_core.py') |
| 3410 | self.assertFalse(zi.is_dir()) |
| 3411 | self.assertEqual(zi.file_size, os.path.getsize(__file__)) |
| 3412 | |
| 3413 | def test_from_file_bytes(self): |
| 3414 | zi = zipfile.ZipInfo.from_file(os.fsencode(__file__), 'test') |
nothing calls this directly
no test coverage detected