MCPcopy Create free account
hub / github.com/rthalley/dnspython / testFromFile2

Method testFromFile2

tests/test_zone.py:349–360  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

347 self.assertTrue(ok)
348
349 def testFromFile2(self):
350 z = dns.zone.from_file(here("example"), "example", relativize=False)
351 ok = False
352 try:
353 z.to_file(here("example2.out"), relativize=False, nl=b"\x0a")
354 ok = compare_files(
355 "testFromFile2", here("example2.out"), here("example2.good")
356 )
357 finally:
358 if not _keep_output:
359 os.unlink(here("example2.out"))
360 self.assertTrue(ok)
361
362 def testToFileTextualStream(self):
363 z = dns.zone.from_text(example_text, "example.", relativize=True)

Callers

nothing calls this directly

Calls 4

hereFunction · 0.90
compare_filesFunction · 0.85
to_fileMethod · 0.80
unlinkMethod · 0.80

Tested by

no test coverage detected