

def test_folders(self):
    db = mock_db()
    account = _account_for_test(db=db)
    with mock_worker(myfolder={
        
    }) as worker:
        account.perform_update()
    account2 = _account_for_test(db=db)
    folders = list(account2.list_folders())
    self.assertEqual(len(folders), 1)
    self.assertEqual(folders[0].name, 'myfolder')

dataset/ETHPy150Open mgax/tinymail/src/tinymail/tests/test_account.py PersistenceTest.test_folders/original