MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_retr

Method test_retr

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

Source from the content-addressed store, hash-verified

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