pystache.tests.test_locator module

Unit tests for locator.py.

class pystache.tests.test_locator.LocatorTests(methodName='runTest')[source]

Bases: TestCase, AssertExceptionMixin

test_find_file()[source]
test_find_name()[source]
test_find_name__non_existent_template_fails()[source]
test_find_name__precedence()[source]

Test the order in which find_name() searches directories.

test_find_name__using_list_of_paths()[source]
test_find_object()[source]
test_find_object__none_file_name()[source]
test_find_object__none_object_directory()[source]
test_get_object_directory()[source]
test_get_object_directory__not_hasattr_module()[source]
test_init__extension()[source]
test_make_file_name()[source]
test_make_file_name__template_extension_argument()[source]
test_make_template_name()[source]

Test make_template_name().