(self)
| 3399 | |
| 3400 | class ZipInfoTests(unittest.TestCase): |
| 3401 | def test_from_file(self): |
| 3402 | zi = zipfile.ZipInfo.from_file(__file__) |
| 3403 | self.assertEqual(posixpath.basename(zi.filename), 'test_core.py') |
| 3404 | self.assertFalse(zi.is_dir()) |
| 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__)) |
nothing calls this directly
no test coverage detected