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

Method testFromFile1

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

Source from the content-addressed store, hash-verified

334
335class 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)

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