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

Method test_storbinary_rest

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

Source from the content-addressed store, hash-verified

623 self.assertTrue(flag)
624
625 def test_storbinary_rest(self):
626 data = RETR_DATA.replace('\r\n', '\n').encode(self.client.encoding)
627 f = io.BytesIO(data)
628 for r in (30, '30'):
629 f.seek(0)
630 self.client.storbinary('stor', f, rest=r)
631 self.assertEqual(self.server.handler_instance.rest, str(r))
632
633 def test_storlines(self):
634 data = RETR_DATA.replace('\r\n', '\n').encode(self.client.encoding)

Callers

nothing calls this directly

Calls 6

seekMethod · 0.95
strFunction · 0.85
storbinaryMethod · 0.80
encodeMethod · 0.45
replaceMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected