django_premailer.tests package

Submodules

django_premailer.tests.test_templatetags module

class django_premailer.tests.test_templatetags.PremailerTests(methodName='runTest')[source]

Bases: django.test.testcases.TestCase

assert_expected(actual, expected)[source]
pretty(ugly)[source]

Force a HTML document to be made pretty.

NOTE: This method is required because of strange differences in the way premailer/lxml makes decisions about the placement of newlines. Using tox all tests pass without this hack, however in travis and circleci the PremailerTests.test_basic() test fails due to some missing ``

`` in the generated actual HTML.

test_basic()[source]

A very basic test that ensures the tag does what we expect it to do.

test_basic_base_url()[source]

Override the base_url.

Module contents