'Incoming email from an unknown partner on a Partners only alias -> bounce'

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

    self.alias.write({'alias_contact': 'partners'})
    new_groups = self.format_and_process(MAIL_TEMPLATE, subject='New    Frogs', to='groups@example.com,    other@gmail.com')
    self.assertTrue((len(new_groups) == 0))
    self.assertEqual(len(self._mails), 1, 'message_process:    incoming    email    on    Partners    alias    should    send    a    bounce    email')
    self.assertIn('New    Frogs', self._mails[0].get('subject'), 'message_process:    bounce    email    on    Partners    alias    should    contain    the    original    subject')
    self.assertIn('whatever-2a840@postmaster.twitter.com', self._mails[0].get('email_to'), 'message_process:    bounce    email    on    Partners    alias    should    go    to    Return-Path    address')
