Mercurial > p > roundup > code
view test/test_mailer.py @ 5120:722394a48d7b
issue2550831: Make the classic template query.edit page work.
R David Murray had a number of fixes.
At least some of the fixes were already present in the devel and
responsive templates.
I touched up the html a bit and did what I hope aresome improvement
for performance by shoving criteria into the filter rather than
looping over all issues and filtering at the tal level.
Also used R David's method to add a restore feature and work around an
issue where a retired (deleted) query could still be in the active
list. But because it was retired there was no way to manipulate it.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 03 Jul 2016 12:23:36 -0400 |
| parents | 364c54991861 |
| children | 198b6e810c67 |
line wrap: on
line source
#-*- encoding: utf8 -*- 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 :
