

def test_list_folders(self):
    account = _account_for_test()
    (fol1, fol2) = (Mock(), Mock())
    account._folders = {
        'fol1': fol1,
        'fol2': fol2,
    }
    folders = list(account.list_folders())
    self.assertEqual(folders, [fol1, fol2])

dataset/ETHPy150Open mgax/tinymail/src/tinymail/tests/test_account.py AccountTest.test_list_folders/original