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

Method test_mboxmmdf_to_mh

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

Source from the content-addressed store, hash-verified

1971 self.assertIsNone(msg2.get_unixfrom())
1972
1973 def test_mboxmmdf_to_mh(self):
1974 # Convert mboxMessage and MMDFMessage to MHMessage
1975 for class_ in (mailbox.mboxMessage, mailbox.MMDFMessage):
1976 msg_mboxMMDF = class_(_sample_message)
1977 pairs = (('R', []), ('O', ['unseen']), ('D', ['unseen']),
1978 ('F', ['unseen', 'flagged']),
1979 ('A', ['unseen', 'replied']),
1980 ('RODFA', ['replied', 'flagged']))
1981 for setting, result in pairs:
1982 msg_mboxMMDF.set_flags(setting)
1983 self.assertEqual(mailbox.MHMessage(msg_mboxMMDF).get_sequences(),
1984 result)
1985
1986 def test_mboxmmdf_to_babyl(self):
1987 # Convert mboxMessage and MMDFMessage to BabylMessage

Callers

nothing calls this directly

Calls 3

set_flagsMethod · 0.45
assertEqualMethod · 0.45
get_sequencesMethod · 0.45

Tested by

no test coverage detected