

def test_folders_removed(self):
    db = mock_db()
    account = _account_for_test(db=db)
    with mock_worker(fol1={
        
    }, fol2={
        
    }):
        account.perform_update()
    with mock_worker(fol1={
        
    }):
        account.perform_update()
    account2 = _account_for_test(db=db)
    self.assertEqual([f.name for f in account2.list_folders()], ['fol1'])

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