(self)
| 334 | |
| 335 | class ZoneTestCase(unittest.TestCase): |
| 336 | def testFromFile1(self): |
| 337 | z = dns.zone.from_file(here("example"), "example") |
| 338 | ok = False |
| 339 | try: |
| 340 | z.to_file(here("example1.out"), nl=b"\x0a") |
| 341 | ok = compare_files( |
| 342 | "testFromFile1", here("example1.out"), here("example1.good") |
| 343 | ) |
| 344 | finally: |
| 345 | if not _keep_output: |
| 346 | os.unlink(here("example1.out")) |
| 347 | self.assertTrue(ok) |
| 348 | |
| 349 | def testFromFile2(self): |
| 350 | z = dns.zone.from_file(here("example"), "example", relativize=False) |
nothing calls this directly
no test coverage detected