

def test_list_messages(self):
    from tinymail.account import Folder
    folder = Folder(Mock(), 'fol1')
    (msg1, msg2) = (Mock(), Mock())
    folder._messages = {
        1: msg1,
        2: msg2,
    }
    messages = list(folder.list_messages())
    self.assertEqual(messages, [msg1, msg2])

dataset/ETHPy150Open mgax/tinymail/src/tinymail/tests/test_account.py FolderTest.test_list_messages/original