

def test_copy_event(self):
    from tinymail.account import folder_updated
    with mock_worker(**uid.imap_data) as worker:
        with listen_for(folder_updated) as caught_signals:
            self.fol1.copy_messages([13], self.fol2)
    uid = max(self.fol2._messages.keys())
    event_data = {
        'added': [uid],
        'removed': [],
        'flags_changed': [],
    }
    self.assertEqual(caught_signals, [(self.fol2, event_data)])

dataset/ETHPy150Open mgax/tinymail/src/tinymail/tests/test_account.py MessagesCopyTest.test_copy_event/VarMisuse@21/27 `self`->`uid`