Mercurial > p > roundup > code
view test/test_mailer.py @ 5261:53a853c06e9a
Fixed quiet history filter for linked items. Test for same fixed.
The original test didn't cover the case where the linked item in
the history/journal wasn't the same type as the item on which the
history was generated. This now pulls the history on a user
who has been linked to the nosy field of an issue.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Mon, 28 Aug 2017 21:51:12 -0400 |
| parents | 198b6e810c67 |
| children | bc2e682e0305 |
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.assertEquals(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('as"ii', 'ascii@test.com', 'iso8859-1', '"as\\"ii" <ascii@test.com>') # vim: set et sts=4 sw=4 :
