pystache.tests.test_loader module

Unit tests of loader.py.

class pystache.tests.test_loader.LoaderTests(methodName='runTest')[source]

Bases: TestCase, AssertStringMixin, SetupDefaults

setUp()[source]

Hook method for setting up the test fixture before exercising it.

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

test_init__extension()[source]
test_init__extension__default()[source]
test_init__file_encoding()[source]
test_init__file_encoding__default()[source]
test_init__to_unicode()[source]
test_init__to_unicode__default()[source]
test_load_file()[source]
test_load_name()[source]
test_read()[source]

Test read().

test_read__encoding__argument()[source]

Test read(): encoding argument respected.

test_read__file_encoding__attribute()[source]

Test read(): file_encoding attribute respected.

test_read__to_unicode__attribute()[source]

Test read(): to_unicode attribute respected.

test_unicode__basic__input_str()[source]

Test unicode(): default arguments with str input.

test_unicode__basic__input_unicode()[source]

Test unicode(): default arguments with unicode input.

test_unicode__basic__input_unicode_subclass()[source]

Test unicode(): default arguments with unicode-subclass input.

test_unicode__encoding_argument()[source]

Test unicode(): encoding argument.

test_unicode__to_unicode__attribute()[source]

Test unicode(): encoding attribute.