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

Method test_makeport

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

Source from the content-addressed store, hash-verified

715 self.fail("unexpected data %s" % x)
716
717 def test_makeport(self):
718 with self.client.makeport():
719 # IPv4 is in use, just make sure send_eprt has not been used
720 self.assertEqual(self.server.handler_instance.last_received_cmd,
721 'port')
722
723 def test_makepasv(self):
724 host, port = self.client.makepasv()

Callers

nothing calls this directly

Calls 2

makeportMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected