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

Method test_get_all

Lib/test/test_email/test_email.py:59–63  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

57# Test various aspects of the Message class's API
58class TestMessageAPI(TestEmailBase):
59 def test_get_all(self):
60 eq = self.assertEqual
61 msg = self._msgobj('msg_20.txt')
62 eq(msg.get_all('cc'), ['ccc@zzz.org', 'ddd@zzz.org', 'eee@zzz.org'])
63 eq(msg.get_all('xx', 'n/a'), 'n/a')
64
65 def test_getset_charset(self):
66 eq = self.assertEqual

Callers

nothing calls this directly

Calls 3

eqFunction · 0.85
_msgobjMethod · 0.45
get_allMethod · 0.45

Tested by

no test coverage detected