'Test alias ownership'

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

    self.alias.write({'alias_user_id': self.user_employee.id})
    new_groups = self.format_and_process(MAIL_TEMPLATE, 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.user_employee.id, 'message_process:    group    should    have    been    created    by    alias_user_id')
