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

Method test_initialize_with_unixfrom

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

Source from the content-addressed store, hash-verified

1721 self._check_from(msg)
1722
1723 def test_initialize_with_unixfrom(self):
1724 # Initialize with a message that already has a _unixfrom attribute
1725 msg = mailbox.Message(_sample_message)
1726 msg.set_unixfrom('From foo@bar blah')
1727 msg = mailbox.mboxMessage(msg)
1728 self.assertEqual(msg.get_from(), 'foo@bar blah')
1729 self.assertEqual(msg.get_unixfrom(), 'From foo@bar blah')
1730
1731 def test_from(self):
1732 # Get and set "From " line

Callers

nothing calls this directly

Calls 4

set_unixfromMethod · 0.95
get_unixfromMethod · 0.95
get_fromMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected