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

Method test_get_flags

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

Source from the content-addressed store, hash-verified

915 check_info('', '')
916
917 def test_get_flags(self):
918 # Test getting message flags from Maildir, not the message.
919 msg = mailbox.MaildirMessage(self._template % 0)
920 key = self._box.add(msg)
921 self.assertEqual(self._box.get_flags(key), '')
922 msg.set_flags('T')
923 self._box[key] = msg
924 self.assertEqual(self._box.get_flags(key), 'T')
925
926 def test_set_flags(self):
927 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