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

Method test_get_MM

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

Source from the content-addressed store, hash-verified

617 (key, self._box.colon))))
618
619 def test_get_MM(self):
620 # Get a MaildirMessage instance
621 msg = mailbox.MaildirMessage(self._template % 0)
622 msg.set_subdir('cur')
623 msg.set_flags('RF')
624 key = self._box.add(msg)
625 msg_returned = self._box.get_message(key)
626 self.assertIsInstance(msg_returned, mailbox.MaildirMessage)
627 self.assertEqual(msg_returned.get_subdir(), 'cur')
628 self.assertEqual(msg_returned.get_flags(), 'FR')
629
630 def test_set_MM(self):
631 # 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