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

Method test_simple

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

Source from the content-addressed store, hash-verified

5013# Test multilingual MIME headers.
5014class TestHeader(TestEmailBase):
5015 def test_simple(self):
5016 eq = self.ndiffAssertEqual
5017 h = Header('Hello World!')
5018 eq(h.encode(), 'Hello World!')
5019 h.append(' Goodbye World!')
5020 eq(h.encode(), 'Hello World! Goodbye World!')
5021
5022 def test_simple_surprise(self):
5023 eq = self.ndiffAssertEqual

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