MCPcopy Index your code
hub / github.com/python/cpython / setUp

Method setUp

Lib/test/test_poplib.py:486–491  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

484 # repeat previous tests by using poplib.POP3.stls()
485
486 def setUp(self):
487 self.server = DummyPOP3Server((HOST, PORT))
488 self.server.start()
489 self.client = poplib.POP3(self.server.host, self.server.port,
490 timeout=test_support.LOOPBACK_TIMEOUT)
491 self.client.stls()
492
493 def tearDown(self):
494 if self.client.file is not None and self.client.sock is not None:

Callers

nothing calls this directly

Calls 3

DummyPOP3ServerClass · 0.85
startMethod · 0.45
stlsMethod · 0.45

Tested by

no test coverage detected