diff --git a/tests/regressiontests/mail/templates/mail/output.html b/tests/regressiontests/mail/templates/mail/output.html new file mode 100644 --- /dev/null +++ b/tests/regressiontests/mail/templates/mail/output.html @@ -0,0 +1,1 @@ +
Mr. {{ user }}: Pay us $ {{ amt }} before next Friday.
diff --git a/tests/regressiontests/mail/templates/mail/output.txt b/tests/regressiontests/mail/templates/mail/output.txt new file mode 100644 --- /dev/null +++ b/tests/regressiontests/mail/templates/mail/output.txt @@ -0,0 +1,1 @@ +{{ user }}: This is an important message. You owe us $ {{ amt }}. diff --git a/tests/regressiontests/mail/tests.py b/tests/regressiontests/mail/tests.py --- a/tests/regressiontests/mail/tests.py +++ b/tests/regressiontests/mail/tests.py @@ -14,6 +14,7 @@ >>> from django.core.mail.backends.base import BaseEmailBackend >>> from django.core.mail.backends import console, dummy, locmem, filebased, smtp >>> from django.utils.translation import ugettext_lazy +>>> from django.template import Context, loader # Test normal ascii character case: @@ -204,6 +205,40 @@ JVBERi0xLjQuJS4uLg== ... +# #13364 +>>> subject, from_email, to = 'hello', 'from@example.com', '"Surname, Firstname"Mr. Joe: Pay us $ 1000.00 before next Friday.
+