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

Method testFromText

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

Source from the content-addressed store, hash-verified

466 self.assertTrue(ok)
467
468 def testFromText(self):
469 z = dns.zone.from_text(example_text, "example.", relativize=True)
470 f = StringIO()
471 names = list(z.nodes.keys())
472 names.sort()
473 for n in names:
474 f.write(z[n].to_text(n))
475 f.write("\n")
476 self.assertEqual(f.getvalue(), example_text_output)
477
478 def testGenerate(self):
479 z = dns.zone.from_text(example_generate, "example.", relativize=True)

Callers

nothing calls this directly

Calls 4

from_textMethod · 0.45
keysMethod · 0.45
writeMethod · 0.45
to_textMethod · 0.45

Tested by

no test coverage detected