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

Method testSplit1

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

Source from the content-addressed store, hash-verified

548 self.assertEqual(len(compress), 1025)
549
550 def testSplit1(self):
551 n = dns.name.from_text("foo.bar.")
552 (prefix, suffix) = n.split(2)
553 ep = dns.name.from_text("foo", None)
554 es = dns.name.from_text("bar.", None)
555 self.assertEqual(prefix, ep)
556 self.assertEqual(suffix, es)
557
558 def testSplit2(self):
559 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