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

Method test_get_MM

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

Source from the content-addressed store, hash-verified

623 (key, self._box.colon))))
624
625 def test_get_MM(self):
626 # Get a MaildirMessage instance
627 msg = mailbox.MaildirMessage(self._template % 0)
628 msg.set_subdir('cur')
629 msg.set_flags('RF')
630 key = self._box.add(msg)
631 msg_returned = self._box.get_message(key)
632 self.assertIsInstance(msg_returned, mailbox.MaildirMessage)
633 self.assertEqual(msg_returned.get_subdir(), 'cur')
634 self.assertEqual(msg_returned.get_flags(), 'FR')
635
636 def test_set_MM(self):
637 # Set with a MaildirMessage instance

Callers

nothing calls this directly

Calls 8

set_subdirMethod · 0.95
set_flagsMethod · 0.95
assertIsInstanceMethod · 0.80
get_subdirMethod · 0.80
addMethod · 0.45
get_messageMethod · 0.45
assertEqualMethod · 0.45
get_flagsMethod · 0.45

Tested by

no test coverage detected