| 386 | |
| 387 | @implementer(ITorManager) |
| 388 | class 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 | |
| 398 | def strip_deprecations(stderr, NL): |