

def test_message_removed(self):
    db = mock_db()
    account = _account_for_test(db=db)
    with mock_worker(fol1={
        6: None,
        8: None,
    }):
        account.perform_update()
    with mock_worker(fol1={
        6: None,
    }):
        account.perform_update()
    account2 = _account_for_test(db=db)
    fol1 = account2.get_folder('fol1')
    self.assertEqual([m.uid for m in fol1.list_messages()], [6])

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