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

Method test_header_ctor_default_args

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

Source from the content-addressed store, hash-verified

5104 self.assertEqual(h.encode(), '')
5105
5106 def test_header_ctor_default_args(self):
5107 eq = self.ndiffAssertEqual
5108 h = Header()
5109 eq(h, '')
5110 h.append('foo', Charset('iso-8859-1'))
5111 eq(h, 'foo')
5112
5113 def test_explicit_maxlinelen(self):
5114 eq = self.ndiffAssertEqual

Callers

nothing calls this directly

Calls 4

appendMethod · 0.95
HeaderClass · 0.90
CharsetClass · 0.90
eqFunction · 0.85

Tested by

no test coverage detected