(self)
| 1483 | self.assertCompiledIn(bn, zipfp.namelist()) |
| 1484 | |
| 1485 | def test_write_python_package(self): |
| 1486 | import email |
| 1487 | packagedir = os.path.dirname(email.__file__) |
| 1488 | self.requiresWriteAccess(packagedir) |
| 1489 | |
| 1490 | with TemporaryFile() as t, zipfile.PyZipFile(t, "w") as zipfp: |
| 1491 | zipfp.writepy(packagedir) |
| 1492 | |
| 1493 | # Check for a couple of modules at different levels of the |
| 1494 | # hierarchy |
| 1495 | names = zipfp.namelist() |
| 1496 | self.assertCompiledIn('email/__init__.py', names) |
| 1497 | self.assertCompiledIn('email/mime/text.py', names) |
| 1498 | |
| 1499 | def test_write_filtered_python_package(self): |
| 1500 | import test |
nothing calls this directly
no test coverage detected