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

Method test_set_flags

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

Source from the content-addressed store, hash-verified

918 self.assertEqual(self._box.get_flags(key), 'T')
919
920 def test_set_flags(self):
921 msg = mailbox.MaildirMessage(self._template % 0)
922 key = self._box.add(msg)
923 self.assertEqual(self._box.get_flags(key), '')
924 self._box.set_flags(key, 'S')
925 self.assertEqual(self._box.get_flags(key), 'S')
926
927 def test_add_flag(self):
928 msg = mailbox.MaildirMessage(self._template % 0)

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected