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

Method test_set_param_requote

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

Source from the content-addressed store, hash-verified

5419""")
5420
5421 def test_set_param_requote(self):
5422 msg = Message()
5423 msg.set_param('title', 'foo')
5424 self.assertEqual(msg['content-type'], 'text/plain; title="foo"')
5425 msg.set_param('title', 'bar', requote=False)
5426 self.assertEqual(msg['content-type'], 'text/plain; title=bar')
5427 # tspecial is still quoted.
5428 msg.set_param('title', "(bar)bell", requote=False)
5429 self.assertEqual(msg['content-type'], 'text/plain; title="(bar)bell"')
5430
5431 def test_del_param(self):
5432 eq = self.ndiffAssertEqual

Callers

nothing calls this directly

Calls 3

set_paramMethod · 0.95
MessageClass · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected