MCPcopy Create free account
hub / github.com/EasyIME/PIME / setUp

Method setUp

python/python3/tornado/test/netutil_test.py:89–99  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

87
88class OverrideResolverTest(AsyncTestCase, _ResolverTestMixin):
89 def setUp(self):
90 super().setUp()
91 mapping = {
92 ("google.com", 80): ("1.2.3.4", 80),
93 ("google.com", 80, socket.AF_INET): ("1.2.3.4", 80),
94 ("google.com", 80, socket.AF_INET6): (
95 "2a02:6b8:7c:40c:c51e:495f:e23a:3",
96 80,
97 ),
98 }
99 self.resolver = OverrideResolver(BlockingResolver(), mapping)
100
101 @gen_test
102 def test_resolve_multiaddr(self):

Callers

nothing calls this directly

Calls 3

OverrideResolverClass · 0.90
BlockingResolverClass · 0.90
setUpMethod · 0.45

Tested by

no test coverage detected