Commit cd1b212d authored by Jérome Perrin's avatar Jérome Perrin

test_MailTemplate: save as utf-8

this code was latin 1, causing issues for refactoring scripts
parent ecb6e36a
# -*- coding: latin-1 -*- # -*- coding: utf-8 -*-
# Copyright (c) 2005-2006 Simplistix Ltd # Copyright (c) 2005-2006 Simplistix Ltd
# #
# This Software is released under the MIT License: # This Software is released under the MIT License:
...@@ -703,7 +703,7 @@ class TestMailTemplate(TestCase): ...@@ -703,7 +703,7 @@ class TestMailTemplate(TestCase):
mfrom='from@example.com', mfrom='from@example.com',
mto=('to@example.com',), mto=('to@example.com',),
subject='Test Subject', subject='Test Subject',
unicode=u''.encode('utf-8'), unicode=u'£££'.encode('utf-8'),
encoding='utf-8' encoding='utf-8'
) )
...@@ -719,7 +719,7 @@ class TestMailTemplate(TestCase): ...@@ -719,7 +719,7 @@ class TestMailTemplate(TestCase):
mfrom='from@example.com', mfrom='from@example.com',
mto=('to@example.com',), mto=('to@example.com',),
subject='Test Subject', subject='Test Subject',
unicode=u''.encode('utf-8'), unicode=u'£££'.encode('utf-8'),
encoding='utf-8' encoding='utf-8'
) )
...@@ -732,7 +732,7 @@ class TestMailTemplate(TestCase): ...@@ -732,7 +732,7 @@ class TestMailTemplate(TestCase):
mfrom='from@example.com', mfrom='from@example.com',
mto=('to@example.com',), mto=('to@example.com',),
subject='Test Subject', subject='Test Subject',
unicode=u'', unicode=u'£££',
encoding='utf-8' encoding='utf-8'
) )
...@@ -753,7 +753,7 @@ class TestMailTemplate(TestCase): ...@@ -753,7 +753,7 @@ class TestMailTemplate(TestCase):
mfrom='from@example.com', mfrom='from@example.com',
mto=('to@example.com',), mto=('to@example.com',),
subject='Test Subject', subject='Test Subject',
unicode=u'', unicode=u'£££',
encoding='utf-8' encoding='utf-8'
) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment