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

Method testSplit2

tests/test_name.py:558–564  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

556 self.assertEqual(suffix, es)
557
558 def testSplit2(self):
559 n = dns.name.from_text("foo.bar.")
560 (prefix, suffix) = n.split(1)
561 ep = dns.name.from_text("foo.bar", None)
562 es = dns.name.from_text(".", None)
563 self.assertEqual(prefix, ep)
564 self.assertEqual(suffix, es)
565
566 def testSplit3(self):
567 n = dns.name.from_text("foo.bar.")

Callers

nothing calls this directly

Calls 2

from_textMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected