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

Method test_transfer

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

Source from the content-addressed store, hash-verified

892 self.assertEqual(self.server.handler_instance.last_received_cmd, 'epsv')
893
894 def test_transfer(self):
895 def retr():
896 received = []
897 self.client.retrbinary('retr', received.append)
898 self.assertEqual(b''.join(received),
899 RETR_DATA.encode(self.client.encoding))
900 self.client.set_pasv(True)
901 retr()
902 self.client.set_pasv(False)
903 retr()
904
905
906@skipUnless(ssl, "SSL not available")

Callers

nothing calls this directly

Calls 1

set_pasvMethod · 0.80

Tested by

no test coverage detected