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

Method setUp

Lib/test/test_ftplib.py:865–871  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

863class TestIPv6Environment(TestCase):
864
865 def setUp(self):
866 self.server = DummyFTPServer((HOSTv6, 0),
867 af=socket.AF_INET6,
868 encoding=DEFAULT_ENCODING)
869 self.server.start()
870 self.client = ftplib.FTP(timeout=TIMEOUT, encoding=DEFAULT_ENCODING)
871 self.client.connect(self.server.host, self.server.port)
872
873 def tearDown(self):
874 self.client.close()

Callers

nothing calls this directly

Calls 3

DummyFTPServerClass · 0.85
startMethod · 0.45
connectMethod · 0.45

Tested by

no test coverage detected