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

Method test_retr

Lib/test/test_poplib.py:330–337  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

328 self.assertEndsWith(self.client.list('1'), b"OK 1 1")
329
330 def test_retr(self):
331 expected = (b'+OK 116 bytes',
332 [b'From: postmaster@python.org', b'Content-Type: text/plain',
333 b'MIME-Version: 1.0', b'Subject: Dummy',
334 b'', b'line1', b'line2', b'line3'],
335 113)
336 foo = self.client.retr('foo')
337 self.assertEqual(foo, expected)
338
339 def test_too_long_lines(self):
340 self.assertRaises(poplib.error_proto, self.client._shortcmd,

Callers

nothing calls this directly

Calls 2

retrMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected