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

Method testToFileFilename

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

Source from the content-addressed store, hash-verified

404 self.assertTrue(ok)
405
406 def testToFileFilename(self):
407 z = dns.zone.from_file(here("example"), "example")
408 try:
409 z.to_file(here("example3-filename.out"))
410 ok = compare_files(
411 "testToFileFilename",
412 here("example3-filename.out"),
413 here("example3.good"),
414 )
415 finally:
416 if not _keep_output:
417 os.unlink(here("example3-filename.out"))
418 self.assertTrue(ok)
419
420 def testToText(self):
421 z = dns.zone.from_file(here("example"), "example")

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