From 8e971a11ede4238662bb5bdab3fb7d846ca2e674 Mon Sep 17 00:00:00 2001 From: schlatterbeck Date: Fri, 15 Jul 2011 10:03:37 +0000 Subject: [PATCH] Fix mailer encoding test: - better name to be able to match it when running single test on the command line - use iso8859-1 instead of latin1, python2.7 will convert latin1 to iso8859-1 which made the test fail git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4632 57a73879-2fb5-44c3-a270-3262357dd7e2 --- test/test_mailer.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/test_mailer.py b/test/test_mailer.py index 95d0df4..ea84f65 100644 --- a/test/test_mailer.py +++ b/test/test_mailer.py @@ -4,13 +4,13 @@ import unittest from roundup import mailer class EncodingTestCase(unittest.TestCase): - def test(self): + def testEncoding(self): a = lambda n, a, c, o: self.assertEquals(mailer.nice_sender_header(n, a, c), o) - a('ascii', 'ascii@test.com', 'latin1', 'ascii ') - a(u'café', 'ascii@test.com', 'latin1', - '=?latin1?q?caf=E9?= ') - a('as"ii', 'ascii@test.com', 'latin1', '"as\\"ii" ') + a('ascii', 'ascii@test.com', 'iso8859-1', 'ascii ') + a(u'café', 'ascii@test.com', 'iso8859-1', + '=?iso8859-1?q?caf=E9?= ') + a('as"ii', 'ascii@test.com', 'iso8859-1', '"as\\"ii" ') def test_suite(): suite = unittest.TestSuite() -- 2.30.2