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

Method testUnsorted

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

Source from the content-addressed store, hash-verified

1091 self.assertFalse(z == "a")
1092
1093 def testUnsorted(self):
1094 z = dns.zone.from_text(example_text, "example.", relativize=True)
1095 f = StringIO()
1096 z.to_file(f, sorted=False)
1097 out = f.getvalue()
1098 f.close()
1099 z2 = dns.zone.from_text(out, "example.", relativize=True)
1100 self.assertEqual(z, z2)
1101
1102 def testNodeReplaceRdatasetConvertsRRsets(self):
1103 node = dns.node.Node()

Callers

nothing calls this directly

Calls 3

to_fileMethod · 0.80
from_textMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected