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

Method testToFileTextualStream

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

Source from the content-addressed store, hash-verified

360 self.assertTrue(ok)
361
362 def testToFileTextualStream(self):
363 z = dns.zone.from_text(example_text, "example.", relativize=True)
364 f = StringIO()
365 z.to_file(f)
366 out = f.getvalue()
367 f.close()
368 self.assertEqual(out, example_text_output)
369
370 def testToFileBinaryStream(self):
371 z = dns.zone.from_text(example_text, "example.", relativize=True)

Callers

nothing calls this directly

Calls 3

to_fileMethod · 0.80
from_textMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected