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

Method test_add_MM

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

Source from the content-addressed store, hash-verified

608 self.assertEqual(os.listdir(os.path.join(self._path, 'tmp')), [])
609
610 def test_add_MM(self):
611 # Add a MaildirMessage instance
612 msg = mailbox.MaildirMessage(self._template % 0)
613 msg.set_subdir('cur')
614 msg.set_info('foo')
615 key = self._box.add(msg)
616 self.assertTrue(os.path.exists(os.path.join(self._path, 'cur', '%s%sfoo' %
617 (key, self._box.colon))))
618
619 def test_get_MM(self):
620 # Get a MaildirMessage instance

Callers

nothing calls this directly

Calls 6

set_subdirMethod · 0.95
set_infoMethod · 0.95
assertTrueMethod · 0.80
addMethod · 0.45
existsMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected