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

Method setUp

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

Source from the content-addressed store, hash-verified

911 """
912
913 def setUp(self, encoding=DEFAULT_ENCODING):
914 self.server = DummyTLS_FTPServer((HOST, 0), encoding=encoding)
915 self.server.start()
916 self.client = ftplib.FTP_TLS(timeout=TIMEOUT, encoding=encoding)
917 self.client.connect(self.server.host, self.server.port)
918 # enable TLS
919 self.client.auth()
920 self.client.prot_p()
921
922
923@skipUnless(ssl, "SSL not available")

Callers

nothing calls this directly

Calls 5

DummyTLS_FTPServerClass · 0.85
prot_pMethod · 0.80
startMethod · 0.45
connectMethod · 0.45
authMethod · 0.45

Tested by

no test coverage detected