mails.tests.test_model_based_backend module

class mails.tests.test_model_based_backend.ModelEmailBackendTests(methodName='runTest')[source]

Bases: django.test.testcases.TestCase

Test the ModelEmailBackend object assuming the MailEngine and DirectMailUtil work properly.

classmethod setUpTestData()[source]

Load initial data for the TestCase.

test_non_rendered_database_entries()[source]

Test non rendered mail database entries are correct after sending email.

test_rendered_database_entries()[source]

Test rendered mail database entries are correct after sending email.

test_context_saved_to_database()[source]

Test mail database entries have relations with their context items.

test_management_command()[source]

Test if management command does the updating of the mail.