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

Method test_get_info

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

Source from the content-addressed store, hash-verified

868 self._box.unlock()
869
870 def test_get_info(self):
871 # Test getting message info from Maildir, not the message.
872 msg = mailbox.MaildirMessage(self._template % 0)
873 key = self._box.add(msg)
874 self.assertEqual(self._box.get_info(key), '')
875 msg.set_info('OurTestInfo')
876 self._box[key] = msg
877 self.assertEqual(self._box.get_info(key), 'OurTestInfo')
878
879 def test_set_info(self):
880 # Test setting message info from Maildir, not the message.

Callers

nothing calls this directly

Calls 4

set_infoMethod · 0.95
addMethod · 0.45
assertEqualMethod · 0.45
get_infoMethod · 0.45

Tested by

no test coverage detected