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

Method test_retrlines_too_long

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

Source from the content-addressed store, hash-verified

833 'x' * self.client.maxline * 2)
834
835 def test_retrlines_too_long(self):
836 self.client.sendcmd('SETLONGRETR %d' % (self.client.maxline * 2))
837 received = []
838 self.assertRaises(ftplib.Error,
839 self.client.retrlines, 'retr', received.append)
840
841 def test_storlines_too_long(self):
842 f = io.BytesIO(b'x' * self.client.maxline * 2)

Callers

nothing calls this directly

Calls 2

sendcmdMethod · 0.80
assertRaisesMethod · 0.45

Tested by

no test coverage detected