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

Method test_get_info

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

Source from the content-addressed store, hash-verified

862 self._box.unlock()
863
864 def test_get_info(self):
865 # Test getting message info from Maildir, not the message.
866 msg = mailbox.MaildirMessage(self._template % 0)
867 key = self._box.add(msg)
868 self.assertEqual(self._box.get_info(key), '')
869 msg.set_info('OurTestInfo')
870 self._box[key] = msg
871 self.assertEqual(self._box.get_info(key), 'OurTestInfo')
872
873 def test_set_info(self):
874 # 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