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

Method setUp

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

Source from the content-addressed store, hash-verified

493class TestFTPClass(TestCase):
494
495 def setUp(self, encoding=DEFAULT_ENCODING):
496 self.server = DummyFTPServer((HOST, 0), encoding=encoding)
497 self.server.start()
498 self.client = ftplib.FTP(timeout=TIMEOUT, encoding=encoding)
499 self.client.connect(self.server.host, self.server.port)
500
501 def tearDown(self):
502 self.client.close()

Callers 1

test_encoding_paramMethod · 0.95

Calls 3

DummyFTPServerClass · 0.85
startMethod · 0.45
connectMethod · 0.45

Tested by

no test coverage detected