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

Method test_simple_surprise

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

Source from the content-addressed store, hash-verified

5090 eq(h.encode(), 'Hello World! Goodbye World!')
5091
5092 def test_simple_surprise(self):
5093 eq = self.ndiffAssertEqual
5094 h = Header('Hello World!')
5095 eq(h.encode(), 'Hello World!')
5096 h.append('Goodbye World!')
5097 eq(h.encode(), 'Hello World! Goodbye World!')
5098
5099 def test_header_needs_no_decoding(self):
5100 h = 'no decoding needed'

Callers

nothing calls this directly

Calls 4

encodeMethod · 0.95
appendMethod · 0.95
HeaderClass · 0.90
eqFunction · 0.50

Tested by

no test coverage detected