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

Method test_info

Lib/test/test_mailbox.py:1673–1680  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1671 self.assertEqual(msg.get_date(), 0.0)
1672
1673 def test_info(self):
1674 # Use get_info() and set_info()
1675 msg = mailbox.MaildirMessage(_sample_message)
1676 self.assertEqual(msg.get_info(), '')
1677 msg.set_info('1,foo=bar')
1678 self.assertEqual(msg.get_info(), '1,foo=bar')
1679 self.assertRaises(TypeError, lambda: msg.set_info(None))
1680 self._check_sample(msg)
1681
1682 def test_info_and_flags(self):
1683 # Test interaction of info and flag methods

Callers

nothing calls this directly

Calls 5

get_infoMethod · 0.95
set_infoMethod · 0.95
_check_sampleMethod · 0.80
assertEqualMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected