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

Method test_mh_to_mh

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

Source from the content-addressed store, hash-verified

2026 self.assertEqual(class_(msg).get_flags(), 'OFA')
2027
2028 def test_mh_to_mh(self):
2029 # Convert MHMessage to MHMessage
2030 msg = mailbox.MHMessage(_sample_message)
2031 msg.add_sequence('unseen')
2032 msg.add_sequence('replied')
2033 msg.add_sequence('flagged')
2034 self.assertEqual(mailbox.MHMessage(msg).get_sequences(),
2035 ['unseen', 'replied', 'flagged'])
2036
2037 def test_mh_to_babyl(self):
2038 # Convert MHMessage to BabylMessage

Callers

nothing calls this directly

Calls 3

add_sequenceMethod · 0.95
assertEqualMethod · 0.45
get_sequencesMethod · 0.45

Tested by

no test coverage detected