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

Method test_maildir_to_maildir

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

Source from the content-addressed store, hash-verified

1905 "while converting {} to {}".format(class1, class2))
1906
1907 def test_maildir_to_maildir(self):
1908 # Convert MaildirMessage to MaildirMessage
1909 msg_maildir = mailbox.MaildirMessage(_sample_message)
1910 msg_maildir.set_flags('DFPRST')
1911 msg_maildir.set_subdir('cur')
1912 date = msg_maildir.get_date()
1913 msg = mailbox.MaildirMessage(msg_maildir)
1914 self._check_sample(msg)
1915 self.assertEqual(msg.get_flags(), 'DFPRST')
1916 self.assertEqual(msg.get_subdir(), 'cur')
1917 self.assertEqual(msg.get_date(), date)
1918
1919 def test_maildir_to_mboxmmdf(self):
1920 # Convert MaildirMessage to mboxmessage and MMDFMessage

Callers

nothing calls this directly

Calls 7

set_flagsMethod · 0.95
set_subdirMethod · 0.95
get_dateMethod · 0.95
get_flagsMethod · 0.95
get_subdirMethod · 0.95
_check_sampleMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected