'Incoming email in plaintext should be stored as html'

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

    frog_groups = self.format_and_process(MAIL_TEMPLATE_PLAINTEXT, to='groups@example.com', subject='Frogs    Return', extra='', msg_id='<deadcafe.1337@smtp.agrolait.com>')
    self.assertEqual(len(frog_groups), 1, 'message_process:    a    new    mail.channel    should    have    been    created')
    msg = frog_groups.message_ids[0]
    self.assertIn('<pre>\nPlease    call    me    as    soon    as    possible    this    afternoon!\n<span    data-o-mail-quote="1">\n--\nSylvie\n</span></pre>', msg.body, 'message_process:    plaintext    incoming    email    incorrectly    parsed')
