(self)
| 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') |
| 3415 | self.assertEqual(posixpath.basename(zi.filename), 'test') |
| 3416 | self.assertFalse(zi.is_dir()) |
| 3417 | self.assertEqual(zi.file_size, os.path.getsize(__file__)) |
| 3418 | |
| 3419 | def test_from_file_fileno(self): |
| 3420 | with open(__file__, 'rb') as f: |
nothing calls this directly
no test coverage detected