Mercurial > p > roundup > code
view test/test_mailer.py @ 7891:3de80157606c
fix: revert markdown2 version limitation; markdown2 bug resolved
Revert this checkin since 2.4.13 with the fix is current:
changeset: 7509:46248c3ca7af
user: John Rouillard <rouilj@ieee.org>
date: Sun Jun 25 17:03:38 2023 -0400
files: .github/workflows/ci-test.yml .travis.yml
description:
markdown2 v2.4.9 is broken. Pin to 2.4.8 or earlier.
Revert when
https://github.com/trentm/python-markdown2/issues/517
is fixed.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sat, 20 Apr 2024 12:42:49 -0400 |
| parents | 95a366d46065 |
| children |
line wrap: on
line source
#-*- encoding: utf-8 -*- import unittest from roundup import mailer class EncodingTestCase(unittest.TestCase): def testEncoding(self): a = lambda n, a, c, o: self.assertEqual(mailer.nice_sender_header(n, a, c), o) a('ascii', 'ascii@test.com', 'iso8859-1', 'ascii <ascii@test.com>') a(u'café', 'ascii@test.com', 'iso8859-1', '=?iso8859-1?q?caf=E9?= <ascii@test.com>') a(u'café', 'ascii@test.com', 'utf-8', '=?utf-8?b?Y2Fmw6k=?= <ascii@test.com>') a('as"ii', 'ascii@test.com', 'iso8859-1', '"as\\"ii" <ascii@test.com>') # vim: set et sts=4 sw=4 :
