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

Method test_get_all

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

eqFunction · 0.50
_msgobjMethod · 0.45
get_allMethod · 0.45

Tested by

no test coverage detected