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

Method test_quopri_splittable

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

Source from the content-addressed store, hash-verified

5130 eq(str(h), hstr)
5131
5132 def test_quopri_splittable(self):
5133 eq = self.ndiffAssertEqual
5134 h = Header(charset='iso-8859-1', maxlinelen=20)
5135 x = 'xxxx ' * 20
5136 h.append(x)
5137 s = h.encode()
5138 eq(s, """\
5139=?iso-8859-1?q?xxx?=
5140 =?iso-8859-1?q?x_?=
5141 =?iso-8859-1?q?xx?=
5142 =?iso-8859-1?q?xx?=
5143 =?iso-8859-1?q?_x?=
5144 =?iso-8859-1?q?xx?=
5145 =?iso-8859-1?q?x_?=
5146 =?iso-8859-1?q?xx?=
5147 =?iso-8859-1?q?xx?=
5148 =?iso-8859-1?q?_x?=
5149 =?iso-8859-1?q?xx?=
5150 =?iso-8859-1?q?x_?=
5151 =?iso-8859-1?q?xx?=
5152 =?iso-8859-1?q?xx?=
5153 =?iso-8859-1?q?_x?=
5154 =?iso-8859-1?q?xx?=
5155 =?iso-8859-1?q?x_?=
5156 =?iso-8859-1?q?xx?=
5157 =?iso-8859-1?q?xx?=
5158 =?iso-8859-1?q?_x?=
5159 =?iso-8859-1?q?xx?=
5160 =?iso-8859-1?q?x_?=
5161 =?iso-8859-1?q?xx?=
5162 =?iso-8859-1?q?xx?=
5163 =?iso-8859-1?q?_x?=
5164 =?iso-8859-1?q?xx?=
5165 =?iso-8859-1?q?x_?=
5166 =?iso-8859-1?q?xx?=
5167 =?iso-8859-1?q?xx?=
5168 =?iso-8859-1?q?_x?=
5169 =?iso-8859-1?q?xx?=
5170 =?iso-8859-1?q?x_?=
5171 =?iso-8859-1?q?xx?=
5172 =?iso-8859-1?q?xx?=
5173 =?iso-8859-1?q?_x?=
5174 =?iso-8859-1?q?xx?=
5175 =?iso-8859-1?q?x_?=
5176 =?iso-8859-1?q?xx?=
5177 =?iso-8859-1?q?xx?=
5178 =?iso-8859-1?q?_x?=
5179 =?iso-8859-1?q?xx?=
5180 =?iso-8859-1?q?x_?=
5181 =?iso-8859-1?q?xx?=
5182 =?iso-8859-1?q?xx?=
5183 =?iso-8859-1?q?_x?=
5184 =?iso-8859-1?q?xx?=
5185 =?iso-8859-1?q?x_?=
5186 =?iso-8859-1?q?xx?=
5187 =?iso-8859-1?q?xx?=
5188 =?iso-8859-1?q?_?=""")
5189 eq(x, str(make_header(decode_header(s))))

Callers

nothing calls this directly

Calls 7

appendMethod · 0.95
encodeMethod · 0.95
HeaderClass · 0.90
make_headerFunction · 0.90
decode_headerFunction · 0.90
eqFunction · 0.85
strFunction · 0.85

Tested by

no test coverage detected