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

Method test_quopri_splittable

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

Source from the content-addressed store, hash-verified

5200 eq(str(h), hstr)
5201
5202 def test_quopri_splittable(self):
5203 eq = self.ndiffAssertEqual
5204 h = Header(charset='iso-8859-1', maxlinelen=20)
5205 x = 'xxxx ' * 20
5206 h.append(x)
5207 s = h.encode()
5208 eq(s, """\
5209=?iso-8859-1?q?xxx?=
5210 =?iso-8859-1?q?x_?=
5211 =?iso-8859-1?q?xx?=
5212 =?iso-8859-1?q?xx?=
5213 =?iso-8859-1?q?_x?=
5214 =?iso-8859-1?q?xx?=
5215 =?iso-8859-1?q?x_?=
5216 =?iso-8859-1?q?xx?=
5217 =?iso-8859-1?q?xx?=
5218 =?iso-8859-1?q?_x?=
5219 =?iso-8859-1?q?xx?=
5220 =?iso-8859-1?q?x_?=
5221 =?iso-8859-1?q?xx?=
5222 =?iso-8859-1?q?xx?=
5223 =?iso-8859-1?q?_x?=
5224 =?iso-8859-1?q?xx?=
5225 =?iso-8859-1?q?x_?=
5226 =?iso-8859-1?q?xx?=
5227 =?iso-8859-1?q?xx?=
5228 =?iso-8859-1?q?_x?=
5229 =?iso-8859-1?q?xx?=
5230 =?iso-8859-1?q?x_?=
5231 =?iso-8859-1?q?xx?=
5232 =?iso-8859-1?q?xx?=
5233 =?iso-8859-1?q?_x?=
5234 =?iso-8859-1?q?xx?=
5235 =?iso-8859-1?q?x_?=
5236 =?iso-8859-1?q?xx?=
5237 =?iso-8859-1?q?xx?=
5238 =?iso-8859-1?q?_x?=
5239 =?iso-8859-1?q?xx?=
5240 =?iso-8859-1?q?x_?=
5241 =?iso-8859-1?q?xx?=
5242 =?iso-8859-1?q?xx?=
5243 =?iso-8859-1?q?_x?=
5244 =?iso-8859-1?q?xx?=
5245 =?iso-8859-1?q?x_?=
5246 =?iso-8859-1?q?xx?=
5247 =?iso-8859-1?q?xx?=
5248 =?iso-8859-1?q?_x?=
5249 =?iso-8859-1?q?xx?=
5250 =?iso-8859-1?q?x_?=
5251 =?iso-8859-1?q?xx?=
5252 =?iso-8859-1?q?xx?=
5253 =?iso-8859-1?q?_x?=
5254 =?iso-8859-1?q?xx?=
5255 =?iso-8859-1?q?x_?=
5256 =?iso-8859-1?q?xx?=
5257 =?iso-8859-1?q?xx?=
5258 =?iso-8859-1?q?_?=""")
5259 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
strFunction · 0.85
eqFunction · 0.50

Tested by

no test coverage detected