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

Method test__contains__

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

Source from the content-addressed store, hash-verified

286 eq(s.getvalue(), text)
287
288 def test__contains__(self):
289 msg = Message()
290 msg['From'] = 'Me'
291 msg['to'] = 'You'
292 # Check for case insensitivity
293 self.assertIn('from', msg)
294 self.assertIn('From', msg)
295 self.assertIn('FROM', msg)
296 self.assertIn('to', msg)
297 self.assertIn('To', msg)
298 self.assertIn('TO', msg)
299
300 def test_as_string(self):
301 msg = self._msgobj('msg_01.txt')

Callers

nothing calls this directly

Calls 2

MessageClass · 0.90
assertInMethod · 0.80

Tested by

no test coverage detected