Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Switched mail tests to SimpleTestCase.

  • Loading branch information...
commit c7364a11f6df8d1c2d340a52e6e58e9a76ceb44f 1 parent 8e571e5
@ramiro ramiro authored andrewgodwin committed
Showing with 7 additions and 7 deletions.
  1. +7 −7 tests/mail/tests.py
View
14 tests/mail/tests.py
@@ -18,7 +18,7 @@
EmailMultiAlternatives, send_mail, send_mass_mail)
from django.core.mail.backends import console, dummy, locmem, filebased, smtp
from django.core.mail.message import BadHeaderError
-from django.test import TestCase
+from django.test import SimpleTestCase
from django.test.utils import override_settings
from django.utils.encoding import force_str, force_text
from django.utils.six import PY3, StringIO, string_types
@@ -46,7 +46,7 @@ def assertMessageHasHeaders(self, message, headers):
'the following headers: %s' % (headers - msg_headers),)
-class MailTests(HeadersCheckMixin, TestCase):
+class MailTests(HeadersCheckMixin, SimpleTestCase):
"""
Non-backend specific tests.
"""
@@ -403,7 +403,7 @@ def test_dont_base64_encode_message_rfc822(self):
self.assertTrue(str('Child Subject') in parent_s)
-class PythonGlobalState(TestCase):
+class PythonGlobalState(SimpleTestCase):
"""
Tests for #12422 -- Django smarts (#2472/#11212) with charset of utf-8 text
parts shouldn't pollute global email Python package charset registry when
@@ -636,7 +636,7 @@ def test_close_connection(self):
self.fail("close() unexpectedly raised an exception: %s" % e)
-class LocmemBackendTests(BaseEmailBackendTests, TestCase):
+class LocmemBackendTests(BaseEmailBackendTests, SimpleTestCase):
email_backend = 'django.core.mail.backends.locmem.EmailBackend'
def get_mailbox_content(self):
@@ -666,7 +666,7 @@ def test_validate_multiline_headers(self):
send_mail('Subject\nMultiline', 'Content', 'from@example.com', ['to@example.com'])
-class FileBackendTests(BaseEmailBackendTests, TestCase):
+class FileBackendTests(BaseEmailBackendTests, SimpleTestCase):
email_backend = 'django.core.mail.backends.filebased.EmailBackend'
def setUp(self):
@@ -723,7 +723,7 @@ def test_file_sessions(self):
connection.close()
-class ConsoleBackendTests(BaseEmailBackendTests, TestCase):
+class ConsoleBackendTests(BaseEmailBackendTests, SimpleTestCase):
email_backend = 'django.core.mail.backends.console.EmailBackend'
def setUp(self):
@@ -826,7 +826,7 @@ def stop(self):
self.join()
-class SMTPBackendTests(BaseEmailBackendTests, TestCase):
+class SMTPBackendTests(BaseEmailBackendTests, SimpleTestCase):
email_backend = 'django.core.mail.backends.smtp.EmailBackend'
@classmethod

0 comments on commit c7364a1

Please sign in to comment.
Something went wrong with that request. Please try again.