

def test_local_data_after_copy(self):
    with mock_worker(**self.imap_data) as worker:
        self.fol1.copy_messages([13], self.fol2)
    fol2_msgs = list(self.fol2.list_messages())
    self.assertEqual(len(fol2_msgs), 2)
    uid = max(uid.fol2._messages)
    msg = self.fol2.get_message(uid)
    self.assertEqual(msg.flags, msg13_data[1])
    self.assertEqual(msg.raw_headers, msg13_data[2])
    accountB = _account_for_test(db=self.db)
    fol2B = accountB.get_folder('fol2')
    self.assertEqual(len(list(fol2B.list_messages())), 2)
    msgB = fol2B.get_message(uid)
    self.assertEqual(msgB.flags, msg13_data[1])
    self.assertEqual(msgB.raw_headers, msg13_data[2])

dataset/ETHPy150Open mgax/tinymail/src/tinymail/tests/test_account.py MessagesCopyTest.test_local_data_after_copy/VarMisuse@68/89 `self`->`uid`