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

Method test_set_pasv

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

Source from the content-addressed store, hash-verified

538 pass
539
540 def test_set_pasv(self):
541 # passive mode is supposed to be enabled by default
542 self.assertTrue(self.client.passiveserver)
543 self.client.set_pasv(True)
544 self.assertTrue(self.client.passiveserver)
545 self.client.set_pasv(False)
546 self.assertFalse(self.client.passiveserver)
547
548 def test_voidcmd(self):
549 self.assertEqual(self.client.voidcmd('echo 200'), '200')

Callers

nothing calls this directly

Calls 3

assertTrueMethod · 0.80
set_pasvMethod · 0.80
assertFalseMethod · 0.80

Tested by

no test coverage detected