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

Method test_sniff

tests/test_async.py:94–100  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

92 return asyncio.run(afunc())
93
94 def test_sniff(self):
95 dns.asyncbackend._default_backend = None
96
97 async def run():
98 self.assertEqual(dns.asyncbackend.sniff(), self.sniff_result)
99
100 self.async_run(run)
101
102 def test_get_default_backend(self):
103 dns.asyncbackend._default_backend = None

Callers 1

test_sniffMethod · 0.45

Calls 1

async_runMethod · 0.95

Tested by

no test coverage detected