MCPcopy Create free account
hub / github.com/RustPython/RustPython / test_get_flags

Method test_get_flags

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

Source from the content-addressed store, hash-verified

909 check_info('', '')
910
911 def test_get_flags(self):
912 # Test getting message flags from Maildir, not the message.
913 msg = mailbox.MaildirMessage(self._template % 0)
914 key = self._box.add(msg)
915 self.assertEqual(self._box.get_flags(key), '')
916 msg.set_flags('T')
917 self._box[key] = msg
918 self.assertEqual(self._box.get_flags(key), 'T')
919
920 def test_set_flags(self):
921 msg = mailbox.MaildirMessage(self._template % 0)

Callers

nothing calls this directly

Calls 4

set_flagsMethod · 0.95
addMethod · 0.45
assertEqualMethod · 0.45
get_flagsMethod · 0.45

Tested by

no test coverage detected