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

Method test_login

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

Source from the content-addressed store, hash-verified

970 self.assertEqual(self.client.voidresp(), "226 transfer complete")
971
972 def test_login(self):
973 # login() is supposed to implicitly secure the control connection
974 self.assertNotIsInstance(self.client.sock, ssl.SSLSocket)
975 self.client.login()
976 self.assertIsInstance(self.client.sock, ssl.SSLSocket)
977 # make sure that AUTH TLS doesn't get issued again
978 self.client.login()
979
980 def test_auth_issued_twice(self):
981 self.client.auth()

Callers

nothing calls this directly

Calls 3

assertNotIsInstanceMethod · 0.80
assertIsInstanceMethod · 0.80
loginMethod · 0.45

Tested by

no test coverage detected