'Incoming email with ref holding model / res_id but that does not match any message in the thread: must raise since OpenERP saas-3'

@mute_logger('odoo.addons.mail.models.mail_thread', 'odoo.models')
def test_message_process_model_res_id(self):

    self.assertRaises(ValueError, self.format_and_process, MAIL_TEMPLATE, email_from='valid.lelitre@agrolait.com', to='noone@example.com', subject='spam', extra=('In-Reply-To:    <12321321-openerp-%d-mail.channel@%s>' % (self.group_public.id, socket.gethostname())), msg_id='<1198923581.41972151344608186802.JavaMail.diff1@agrolait.com>')
    self.fake_email.write({'message_id': False})
    self.assertRaises(ValueError, self.format_and_process, MAIL_TEMPLATE, email_from='other5@gmail.com', msg_id='<1.2.JavaMail.new@agrolait.com>', to='noone@example.com>', subject='spam', extra=('In-Reply-To:    <12321321-openerp-%d-mail.channel@%s>' % (self.group_public.id, socket.gethostname())))
    self.assertRaises(ValueError, self.format_and_process, MAIL_TEMPLATE, email_from='other5@gmail.com', msg_id='<1.3.JavaMail.new@agrolait.com>', to='noone@example.com>', subject='spam', extra=('In-Reply-To:    <12321321-openerp-%d-mail.channel@neighbor.com>' % self.group_public.id))
    self.assertEqual(len(self.group_public.message_ids), 1)
    self.assertEqual(len(self.group_public.message_ids[0].child_ids), 0)
