

def test_list_folders(self):
    from tinymail.account import account_updated
    account = _account_for_test()
    folders = {
        'fol1': {
            
        },
        'fol2': {
            
        },
    }
    with mock_worker(**folders):
        with listen_for(account_updated) as caught_signals:
            account.perform_update()
    self.assertEqual(set((f.name for f in caught_signals.list_folders())), set(folders))
    self.assertEqual(caught_signals, [(account, {
        
    })])

dataset/ETHPy150Open mgax/tinymail/src/tinymail/tests/test_account.py AccountUpdateTest.test_list_folders/VarMisuse@85/111 `account`->`caught_signals`