def test_deleteMessage(self):
        mailbox = mail.maildir.StringListMailbox(["foo"])
        mailbox.deleteMessage(0)
        self.assertEqual(mailbox.listMessages(0), 0)
        self.assertEqual(mailbox.listMessages(), [0])
Make the model object behave like a dict.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/mail/test/test_mail.py/StringListMailboxTests.test_deleteMessage--crossover with--dataset/ETHPy150Open openstack/rack/rack/openstack/common/db/sqlalchemy/models.py/ModelBase.update