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

Method testHelpfulNoErrorNoData

tests/test_resolver.py:1147–1156  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1145 self.assertEqual(name, expected)
1146
1147 def testHelpfulNoErrorNoData(self):
1148 with AlwaysNoErrorNoDataNanoNameserver() as na:
1149 res = dns.resolver.Resolver(configure=False)
1150 res.port = na.udp_address[1]
1151 res.nameservers = [na.udp_address[0]]
1152 expected = dns.name.from_text("example.")
1153 name = dns.resolver.zone_for_name(
1154 "1.2.3.4.5.6.7.8.9.10.example.", resolver=res
1155 )
1156 self.assertEqual(name, expected)
1157
1158
1159class DroppingNanoNameserver(Server):

Callers

nothing calls this directly

Calls 2

from_textMethod · 0.45

Tested by

no test coverage detected