Skip to content

Commit 2ce6917

Browse files
author
Ralf Schlatterbeck
committed
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
1 parent d538b0d commit 2ce6917

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/test_mailer.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
from roundup import mailer
55

66
class EncodingTestCase(unittest.TestCase):
7-
def test(self):
7+
def testEncoding(self):
88
a = lambda n, a, c, o: self.assertEquals(mailer.nice_sender_header(n,
99
a, c), o)
10-
a('ascii', '[email protected]', 'latin1', 'ascii <[email protected]>')
11-
a(u'café', '[email protected]', 'latin1',
12-
'=?latin1?q?caf=E9?= <[email protected]>')
13-
a('as"ii', '[email protected]', 'latin1', '"as\\"ii" <[email protected]>')
10+
a('ascii', '[email protected]', 'iso8859-1', 'ascii <[email protected]>')
11+
a(u'café', '[email protected]', 'iso8859-1',
12+
'=?iso8859-1?q?caf=E9?= <[email protected]>')
13+
a('as"ii', '[email protected]', 'iso8859-1', '"as\\"ii" <[email protected]>')
1414

1515
def test_suite():
1616
suite = unittest.TestSuite()

0 commit comments

Comments
 (0)