

def test_get_message(self):
    from tinymail.account import Folder
    folder = Folder(Mock(), 'fol1')
    (msg1, msg2) = (Mock(), Mock())
    folder._messages = {
        1: msg1,
        2: msg2,
    }
    self.assertEqual(folder.get_message(1), msg1)
    msg1.assertEqual(folder.get_message(2), msg2)

dataset/ETHPy150Open mgax/tinymail/src/tinymail/tests/test_account.py FolderTest.test_get_message/VarMisuse@76/92 `self`->`msg1`