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

Method test_makepasv

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

Source from the content-addressed store, hash-verified

886 'eprt')
887
888 def test_makepasv(self):
889 host, port = self.client.makepasv()
890 conn = socket.create_connection((host, port), timeout=TIMEOUT)
891 conn.close()
892 self.assertEqual(self.server.handler_instance.last_received_cmd, 'epsv')
893
894 def test_transfer(self):
895 def retr():

Callers

nothing calls this directly

Calls 4

makepasvMethod · 0.80
create_connectionMethod · 0.45
closeMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected