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

Method test__contains__

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

Source from the content-addressed store, hash-verified

285 eq(s.getvalue(), text)
286
287 def test__contains__(self):
288 msg = Message()
289 msg['From'] = 'Me'
290 msg['to'] = 'You'
291 # Check for case insensitivity
292 self.assertIn('from', msg)
293 self.assertIn('From', msg)
294 self.assertIn('FROM', msg)
295 self.assertIn('to', msg)
296 self.assertIn('To', msg)
297 self.assertIn('TO', msg)
298
299 def test_as_string(self):
300 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