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

Method test_simple_surprise

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

Source from the content-addressed store, hash-verified

5020 eq(h.encode(), 'Hello World! Goodbye World!')
5021
5022 def test_simple_surprise(self):
5023 eq = self.ndiffAssertEqual
5024 h = Header('Hello World!')
5025 eq(h.encode(), 'Hello World!')
5026 h.append('Goodbye World!')
5027 eq(h.encode(), 'Hello World! Goodbye World!')
5028
5029 def test_header_needs_no_decoding(self):
5030 h = 'no decoding needed'

Callers

nothing calls this directly

Calls 4

encodeMethod · 0.95
appendMethod · 0.95
HeaderClass · 0.90
eqFunction · 0.85

Tested by

no test coverage detected