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

Method test_add_invalid_8bit_bytes_header

Lib/test/test_mailbox.py:100–104  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

98 """)
99
100 def test_add_invalid_8bit_bytes_header(self):
101 key = self._box.add(self._nonascii_msg.encode('latin-1'))
102 self.assertEqual(len(self._box), 1)
103 self.assertEqual(self._box.get_bytes(key),
104 self._nonascii_msg.encode('latin-1'))
105
106 def test_invalid_nonascii_header_as_string(self):
107 subj = self._nonascii_msg.splitlines()[1]

Callers

nothing calls this directly

Calls 4

addMethod · 0.45
encodeMethod · 0.45
assertEqualMethod · 0.45
get_bytesMethod · 0.45

Tested by

no test coverage detected