pystache.tests.test_specloader module
Unit tests for template_spec.py.
- class pystache.tests.test_specloader.AssertPathsMixin[source]
Bases:
object
A unittest.TestCase mixin to check path equality.
- class pystache.tests.test_specloader.SpecLoaderTests(methodName='runTest')[source]
Bases:
TestCase
,AssertIsMixin
,AssertStringMixin
,AssertPathsMixin
Tests template_spec.SpecLoader.
- test_load__template__correct_loader()[source]
Test that reader.unicode() is called correctly.
This test tests that the correct reader is called with the correct arguments. This is a catch-all test to supplement the other test cases. It tests SpecLoader.load() independent of reader.unicode() being implemented correctly (and tested).
- class pystache.tests.test_specloader.TemplateSpecTests(methodName='runTest')[source]
Bases:
TestCase
,AssertPathsMixin
- test_find__without_directory()[source]
Test _find() with a view that doesn’t have a directory specified.
- test_find_relative__template_extension()[source]
Test _find_relative(): template_extension attribute.
- test_find_relative__template_rel_directory()[source]
Test _find_relative(): template_rel_directory attribute.
- test_find_relative__template_rel_path__file_name_only()[source]
Test _find_relative(): template_rel_path attribute.
- class pystache.tests.test_specloader.ViewTestCase(methodName='runTest')[source]
Bases:
TestCase
,AssertStringMixin