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

Method test_del_nonexistent_param

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

Source from the content-addressed store, hash-verified

556 msg.del_param('filename', 'content-disposition')
557
558 def test_del_nonexistent_param(self):
559 msg = Message()
560 msg.add_header('Content-Type', 'text/plain', charset='utf-8')
561 existing_header = msg['Content-Type']
562 msg.del_param('foobar', header='Content-Type')
563 self.assertEqual(msg['Content-Type'], existing_header)
564
565 def test_set_type(self):
566 eq = self.assertEqual

Callers

nothing calls this directly

Calls 4

add_headerMethod · 0.95
del_paramMethod · 0.95
MessageClass · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected