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

Method test_mh_to_mh

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

Source from the content-addressed store, hash-verified

2041 self.assertEqual(class_(msg).get_flags(), 'OFA')
2042
2043 def test_mh_to_mh(self):
2044 # Convert MHMessage to MHMessage
2045 msg = mailbox.MHMessage(_sample_message)
2046 msg.add_sequence('unseen')
2047 msg.add_sequence('replied')
2048 msg.add_sequence('flagged')
2049 self.assertEqual(mailbox.MHMessage(msg).get_sequences(),
2050 ['unseen', 'replied', 'flagged'])
2051
2052 def test_mh_to_babyl(self):
2053 # 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