pystache.tests package
Subpackages
- pystache.tests.data package
- pystache.tests.examples package
- Submodules
- pystache.tests.examples.comments module
- pystache.tests.examples.complex module
- pystache.tests.examples.delimiters module
- pystache.tests.examples.double_section module
- pystache.tests.examples.escaped module
- pystache.tests.examples.inverted module
- pystache.tests.examples.lambdas module
- pystache.tests.examples.nested_context module
- pystache.tests.examples.partials_with_lambdas module
- pystache.tests.examples.readme module
- pystache.tests.examples.simple module
- pystache.tests.examples.template_partial module
- pystache.tests.examples.unescaped module
- pystache.tests.examples.unicode_input module
- pystache.tests.examples.unicode_output module
- Module contents
- Submodules
Submodules
- pystache.tests.benchmark module
- pystache.tests.common module
- pystache.tests.doctesting module
- pystache.tests.main module
- pystache.tests.spectesting module
- pystache.tests.test___init__ module
- pystache.tests.test_commands module
- pystache.tests.test_context module
ContextStackTestCase
ContextStackTestCase.test__repr()
ContextStackTestCase.test__str()
ContextStackTestCase.test_copy()
ContextStackTestCase.test_create__context()
ContextStackTestCase.test_create__dictionary()
ContextStackTestCase.test_create__kwarg()
ContextStackTestCase.test_create__none()
ContextStackTestCase.test_create__object()
ContextStackTestCase.test_create__precedence_keyword()
ContextStackTestCase.test_create__precedence_positional()
ContextStackTestCase.test_dot_notation__autocall()
ContextStackTestCase.test_dot_notation__dict()
ContextStackTestCase.test_dot_notation__missing_attr_or_key()
ContextStackTestCase.test_dot_notation__missing_part_terminates_search()
ContextStackTestCase.test_dot_notation__mixed_dict_and_obj()
ContextStackTestCase.test_dot_notation__user_object()
ContextStackTestCase.test_get__fallback()
ContextStackTestCase.test_get__key_missing()
ContextStackTestCase.test_get__key_present()
ContextStackTestCase.test_get__precedence()
ContextStackTestCase.test_get__single_dot()
ContextStackTestCase.test_get__single_dot__missing()
ContextStackTestCase.test_init__many_elements()
ContextStackTestCase.test_init__no_elements()
ContextStackTestCase.test_pop()
ContextStackTestCase.test_push()
ContextStackTestCase.test_top()
DictLike
GetValueTestCase
GetValueTestCase.assertNotFound()
GetValueTestCase.test_built_in_type__integer()
GetValueTestCase.test_built_in_type__list()
GetValueTestCase.test_built_in_type__string()
GetValueTestCase.test_dictionary__attributes_not_checked()
GetValueTestCase.test_dictionary__callable_not_called()
GetValueTestCase.test_dictionary__dict_subclass()
GetValueTestCase.test_dictionary__key_missing()
GetValueTestCase.test_dictionary__key_present()
GetValueTestCase.test_object__attribute_is_callable()
GetValueTestCase.test_object__attribute_missing()
GetValueTestCase.test_object__attribute_present()
GetValueTestCase.test_object__dict_like()
GetValueTestCase.test_object__non_built_in_type()
GetValueTestCase.test_object__property__raising_exception()
SimpleObject
- pystache.tests.test_defaults module
- pystache.tests.test_examples module
TestView
TestView.test_comments()
TestView.test_delimiters()
TestView.test_double_section()
TestView.test_escaping()
TestView.test_literal()
TestView.test_nested_context()
TestView.test_nested_context_is_available_in_view()
TestView.test_partial_in_partial_has_access_to_grand_parent_context()
TestView.test_template_partial()
TestView.test_template_partial_extension()
TestView.test_unicode_input()
TestView.test_unicode_output()
- pystache.tests.test_loader module
LoaderTests
LoaderTests.setUp()
LoaderTests.tearDown()
LoaderTests.test_init__extension()
LoaderTests.test_init__extension__default()
LoaderTests.test_init__file_encoding()
LoaderTests.test_init__file_encoding__default()
LoaderTests.test_init__to_unicode()
LoaderTests.test_init__to_unicode__default()
LoaderTests.test_load_file()
LoaderTests.test_load_name()
LoaderTests.test_read()
LoaderTests.test_read__encoding__argument()
LoaderTests.test_read__file_encoding__attribute()
LoaderTests.test_read__to_unicode__attribute()
LoaderTests.test_unicode__basic__input_str()
LoaderTests.test_unicode__basic__input_unicode()
LoaderTests.test_unicode__basic__input_unicode_subclass()
LoaderTests.test_unicode__encoding_argument()
LoaderTests.test_unicode__to_unicode__attribute()
- pystache.tests.test_locator module
LocatorTests
LocatorTests.test_find_file()
LocatorTests.test_find_name()
LocatorTests.test_find_name__non_existent_template_fails()
LocatorTests.test_find_name__precedence()
LocatorTests.test_find_name__using_list_of_paths()
LocatorTests.test_find_object()
LocatorTests.test_find_object__none_file_name()
LocatorTests.test_find_object__none_object_directory()
LocatorTests.test_get_object_directory()
LocatorTests.test_get_object_directory__not_hasattr_module()
LocatorTests.test_init__extension()
LocatorTests.test_make_file_name()
LocatorTests.test_make_file_name__template_extension_argument()
LocatorTests.test_make_template_name()
- pystache.tests.test_parser module
- pystache.tests.test_pystache module
PystacheTests
PystacheTests.non_strings_expected
PystacheTests.setUp()
PystacheTests.tearDown()
PystacheTests.test__section__non_false_value()
PystacheTests.test_basic()
PystacheTests.test_comments()
PystacheTests.test_even_less_basic()
PystacheTests.test_false_sections_are_hidden()
PystacheTests.test_ignores_misses()
PystacheTests.test_implicit_iterator()
PystacheTests.test_kwargs()
PystacheTests.test_later_list_section_with_escapable_character()
PystacheTests.test_less_basic()
PystacheTests.test_non_strings()
PystacheTests.test_render_zero()
PystacheTests.test_sections()
PystacheTests.test_surrounding_whitepace_not_altered()
PystacheTests.test_true_sections_are_shown()
PystacheTests.test_unicode()
- pystache.tests.test_renderengine module
RenderEngineTestCase
RenderTests
RenderTests.test__escape()
RenderTests.test__escape_does_not_call_literal()
RenderTests.test__escape_preserves_unicode_subclasses()
RenderTests.test__literal()
RenderTests.test__non_basestring__literal_and_escaped()
RenderTests.test__resolve_partial()
RenderTests.test_comment__multiline()
RenderTests.test_custom_delimiters__not_retroactive()
RenderTests.test_custom_delimiters__sections()
RenderTests.test_dot_notation()
RenderTests.test_dot_notation__missing_part_terminates_search()
RenderTests.test_dot_notation__multiple_levels()
RenderTests.test_implicit_iterator__escaped()
RenderTests.test_implicit_iterator__literal()
RenderTests.test_interpolation__built_in_type__integer()
RenderTests.test_interpolation__built_in_type__list()
RenderTests.test_interpolation__built_in_type__string()
RenderTests.test_interpolation__falsey__none()
RenderTests.test_interpolation__falsey__zero()
RenderTests.test_interpolation__nonascii_nonunicode()
RenderTests.test_lambda__returning_nonascii_nonunicode()
RenderTests.test_literal__in_partial()
RenderTests.test_literal__in_section()
RenderTests.test_literal__sigil()
RenderTests.test_partial()
RenderTests.test_partial__context_values()
RenderTests.test_render()
RenderTests.test_section__context_precedence()
RenderTests.test_section__context_values()
RenderTests.test_section__end_tag_mismatch()
RenderTests.test_section__end_tag_with_no_start_tag()
RenderTests.test_section__iterable()
RenderTests.test_section__lambda()
RenderTests.test_section__lambda__list()
RenderTests.test_section__lambda__mixed_list()
RenderTests.test_section__lambda__no_reinterpolation()
RenderTests.test_section__lambda__not_on_context_stack()
RenderTests.test_section__lambda__returning_nonascii_nonunicode()
RenderTests.test_section__lambda__returning_nonstring()
RenderTests.test_section__lambda__tag_in_output()
RenderTests.test_section__list_referencing_outer_context()
RenderTests.test_section__nested_truthy()
RenderTests.test_section__nested_with_same_keys()
RenderTests.test_section__nonascii_nonunicode()
RenderTests.test_section__output_not_interpolated()
RenderTests.test_section__string_values_not_lists()
RenderTests.test_tag__output_not_interpolated()
RenderTests.test_tag__output_not_interpolated__section()
RenderTests.test_to_str()
RenderTests.test_to_str__lambda()
RenderTests.test_to_str__section_lambda()
RenderTests.test_to_str__section_list()
mock_literal()
- pystache.tests.test_renderer module
RendererInitTestCase
RendererInitTestCase.test_decode_errors()
RendererInitTestCase.test_decode_errors__default()
RendererInitTestCase.test_escape()
RendererInitTestCase.test_escape__default()
RendererInitTestCase.test_file_encoding()
RendererInitTestCase.test_file_encoding__default()
RendererInitTestCase.test_file_extension()
RendererInitTestCase.test_file_extension__default()
RendererInitTestCase.test_missing_tags()
RendererInitTestCase.test_missing_tags__default()
RendererInitTestCase.test_partials()
RendererInitTestCase.test_partials__default()
RendererInitTestCase.test_search_dirs__default()
RendererInitTestCase.test_search_dirs__list()
RendererInitTestCase.test_search_dirs__string()
RendererInitTestCase.test_string_encoding()
RendererInitTestCase.test_string_encoding__default()
RendererTests
RendererTests.test__make_loader__attributes()
RendererTests.test__make_loader__return_type()
RendererTests.test_custom_string_coercion_via_assignment()
RendererTests.test_custom_string_coercion_via_subclassing()
RendererTests.test_make_resolve_partial()
RendererTests.test_make_resolve_partial__unicode()
RendererTests.test_render__context()
RendererTests.test_render__context_and_kwargs()
RendererTests.test_render__context_and_kwargs__precedence()
RendererTests.test_render__kwargs_and_no_context()
RendererTests.test_render__kwargs_does_not_modify_context()
RendererTests.test_render__non_ascii_character()
RendererTests.test_render__nonascii_template()
RendererTests.test_render__object()
RendererTests.test_render__return_type()
RendererTests.test_render__str()
RendererTests.test_render__template_spec()
RendererTests.test_render__unicode()
RendererTests.test_render__view()
RendererTests.test_render_name()
RendererTests.test_render_path()
RendererTests.test_unicode__decode_errors()
RendererTests.test_unicode__string_encoding()
Renderer_MakeRenderEngineTests
Renderer_MakeRenderEngineTests.test__escape__has_access_to_original_unicode_subclass()
Renderer_MakeRenderEngineTests.test__escape__returns_unicode()
Renderer_MakeRenderEngineTests.test__escape__uses_renderer_escape()
Renderer_MakeRenderEngineTests.test__escape__uses_renderer_unicode()
Renderer_MakeRenderEngineTests.test__literal__handles_unicode()
Renderer_MakeRenderEngineTests.test__literal__returns_unicode()
Renderer_MakeRenderEngineTests.test__literal__uses_renderer_unicode()
Renderer_MakeRenderEngineTests.test__missing_tags__unknown_value()
Renderer_MakeRenderEngineTests.test__resolve_context()
Renderer_MakeRenderEngineTests.test__resolve_context__missing_tags_strict()
Renderer_MakeRenderEngineTests.test__resolve_partial__not_found()
Renderer_MakeRenderEngineTests.test__resolve_partial__not_found__missing_tags_strict()
Renderer_MakeRenderEngineTests.test__resolve_partial__not_found__partials_dict()
Renderer_MakeRenderEngineTests.test__resolve_partial__not_found__partials_dict__missing_tags_strict()
Renderer_MakeRenderEngineTests.test__resolve_partial__returns_unicode()
mock_unicode()
- pystache.tests.test_simple module
- pystache.tests.test_specloader module
AssertPathsMixin
SpecLoaderTests
SpecLoaderTests.test_find__template_path()
SpecLoaderTests.test_init__defaults()
SpecLoaderTests.test_init__loader()
SpecLoaderTests.test_load__template__correct_loader()
SpecLoaderTests.test_load__template__type_str()
SpecLoaderTests.test_load__template__type_unicode()
SpecLoaderTests.test_load__template__unicode_non_ascii()
SpecLoaderTests.test_load__template__with_template_encoding()
TemplateSpecTests
TemplateSpecTests.test_find__with_directory()
TemplateSpecTests.test_find__without_directory()
TemplateSpecTests.test_find_relative()
TemplateSpecTests.test_find_relative__template_extension()
TemplateSpecTests.test_find_relative__template_name()
TemplateSpecTests.test_find_relative__template_rel_directory()
TemplateSpecTests.test_find_relative__template_rel_path__file_name_only()
TemplateSpecTests.test_find_relative__template_rel_path__file_name_with_directory()
TemplateSpecTests.test_get_template()
TemplateSpecTests.test_get_template__template_encoding()
Thing
ViewTestCase
ViewTestCase.test_accessing_properties_on_parent_object_from_child_objects()
ViewTestCase.test_basic_method_calls()
ViewTestCase.test_complex()
ViewTestCase.test_hierarchical_partials_with_lambdas()
ViewTestCase.test_higher_order_lambda()
ViewTestCase.test_higher_order_replace()
ViewTestCase.test_higher_order_rot13()
ViewTestCase.test_inverted()
ViewTestCase.test_inverted_lists()
ViewTestCase.test_non_callable_attributes()
ViewTestCase.test_partials_with_lambda()
ViewTestCase.test_template_path_for_partials()
ViewTestCase.test_template_rel_directory()
Module contents
TODO: add a docstring.