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

Method test_set_param_requote

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

Source from the content-addressed store, hash-verified

5490""")
5491
5492 def test_set_param_requote(self):
5493 msg = Message()
5494 msg.set_param('title', 'foo')
5495 self.assertEqual(msg['content-type'], 'text/plain; title="foo"')
5496 msg.set_param('title', 'bar', requote=False)
5497 self.assertEqual(msg['content-type'], 'text/plain; title=bar')
5498 # tspecial is still quoted.
5499 msg.set_param('title', "(bar)bell", requote=False)
5500 self.assertEqual(msg['content-type'], 'text/plain; title="(bar)bell"')
5501
5502 def test_del_param(self):
5503 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