'Incoming email on an alias creating a new record + message_new + message details'

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

    new_groups = self.format_and_process(MAIL_TEMPLATE, subject='My    Frogs', to='groups@example.com,    other@gmail.com')
    self.assertEqual(len(new_groups), 1, 'message_process:    a    new    mail.channel    should    have    been    created')
    res = (new_groups.get_metadata()[0].get('create_uid') or [None])
    self.assertEqual(res[0], self.env.uid, 'message_process:    group    should    have    been    created    by    uid    as    alias_user_id    is    False    on    the    alias')
    self.assertEqual(len(new_groups.message_ids), 1, 'message_process:    newly    created    group    should    have    the    incoming    email    in    message_ids')
    msg = new_groups.message_ids[0]
    self.assertEqual(msg.subject, 'My    Frogs', 'message_process:    newly    created    group    should    have    the    incoming    email    as    first    message')
    self.assertIn('Please    call    me    as    soon    as    possible    this    afternoon!', msg.body, 'message_process:    newly    created    group    should    have    the    incoming    email    as    first    message')
    self.assertEqual(msg.message_type, 'email', 'message_process:    newly    created    group    should    have    an    email    as    first    message')
    self.assertEqual(msg.subtype_id, self.env.ref('mail.mt_comment'), 'message_process:    newly    created    group    should    not    have    a    log    first    message    but    an    email')
    self.assertEqual(len(self._mails), 0, 'message_process:    should    create    emails    without    any    follower    added')
