'If HTML emails are disabled, check that outgoing emails are not multipart'

def test_plain_email(self):

    userena_settings.USERENA_HTML_EMAIL = False
    new_user = UserenaSignup.objects.create_user(**self.user_info)
    self.assertEqual(len(mail.outbox), 1)
    self.assertEqual(text_type(mail.outbox[0].message()).find('multipart/alternative'), (-1))
