MCPcopy
hub / github.com/magic-wormhole/magic-wormhole / FakeTor

Class FakeTor

src/wormhole/test/test_cli.py:388–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

386
387@implementer(ITorManager)
388class FakeTor:
389 # use normal endpoints, but record the fact that we were asked
390 def __init__(self):
391 self.endpoints = []
392
393 def stream_via(self, host, port, tls=False):
394 self.endpoints.append((host, port, tls))
395 return endpoints.HostnameEndpoint(reactor, host, port)
396
397
398def strip_deprecations(stderr, NL):

Callers 1

_do_testFunction · 0.85

Calls

no outgoing calls

Tested by 1

_do_testFunction · 0.68