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

Method test_info

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

Source from the content-addressed store, hash-verified

1686 self.assertEqual(msg.get_date(), 0.0)
1687
1688 def test_info(self):
1689 # Use get_info() and set_info()
1690 msg = mailbox.MaildirMessage(_sample_message)
1691 self.assertEqual(msg.get_info(), '')
1692 msg.set_info('1,foo=bar')
1693 self.assertEqual(msg.get_info(), '1,foo=bar')
1694 self.assertRaises(TypeError, lambda: msg.set_info(None))
1695 self._check_sample(msg)
1696
1697 def test_info_and_flags(self):
1698 # 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