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

Method setUp

Lib/test/test_ftplib.py:928–932  ·  view source on GitHub ↗
(self, encoding=DEFAULT_ENCODING)

Source from the content-addressed store, hash-verified

926 """Specific TLS_FTP class tests."""
927
928 def setUp(self, encoding=DEFAULT_ENCODING):
929 self.server = DummyTLS_FTPServer((HOST, 0), encoding=encoding)
930 self.server.start()
931 self.client = ftplib.FTP_TLS(timeout=TIMEOUT)
932 self.client.connect(self.server.host, self.server.port)
933
934 def tearDown(self):
935 self.client.close()

Callers

nothing calls this directly

Calls 3

DummyTLS_FTPServerClass · 0.85
startMethod · 0.45
connectMethod · 0.45

Tested by

no test coverage detected