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

Method test_long_header_encode

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

Source from the content-addressed store, hash-verified

1050 =?utf-8?b?44Go6KiA44Gj44Gm44GE44G+44GZ44CC?=""")
1051
1052 def test_long_header_encode(self):
1053 eq = self.ndiffAssertEqual
1054 h = Header('wasnipoop; giraffes="very-long-necked-animals"; '
1055 'spooge="yummy"; hippos="gargantuan"; marshmallows="gooey"',
1056 header_name='X-Foobar-Spoink-Defrobnit')
1057 eq(h.encode(), '''\
1058wasnipoop; giraffes="very-long-necked-animals";
1059 spooge="yummy"; hippos="gargantuan"; marshmallows="gooey"''')
1060
1061 def test_long_header_encode_with_tab_continuation_is_just_a_hint(self):
1062 eq = self.ndiffAssertEqual

Callers

nothing calls this directly

Calls 3

encodeMethod · 0.95
HeaderClass · 0.90
eqFunction · 0.85

Tested by

no test coverage detected