regulations.tests package
Submodules
regulations.tests.api_reader_tests module
regulations.tests.apps_tests module
regulations.tests.base_template_test module
regulations.tests.diff_applier_tests module
-
class
regulations.tests.diff_applier_tests.
DiffApplierTest
(methodName='runTest')[source]
Bases: unittest.case.TestCase
-
build_tree
()[source]
-
create_diff_applier
()[source]
-
test_add_nodes_child_ops
()[source]
If we don’t know the correct order of children, attempt to use data
from child_ops
-
test_add_nodes_empty_tree
()[source]
-
test_add_nodes_new_section
()[source]
-
test_add_nodes_to_tree
()[source]
-
test_apply_diff
()[source]
-
test_apply_diff_title
()[source]
-
test_child_picking
()[source]
-
test_create_applier
()[source]
-
test_deconstruct_text
()[source]
-
test_delete_all
()[source]
-
test_delete_text
()[source]
-
test_insert_text
()[source]
-
test_insert_text_at_end
()[source]
-
test_set_child_labels_reorder
()[source]
Nodes which have been _moved_ should be ordered in their final
resting position
-
test_tree_changes_new_section
()[source]
regulations.tests.generator_section_url_tests module
regulations.tests.generator_subterp_tests module
regulations.tests.generator_tests module
regulations.tests.generator_toc_tests module
regulations.tests.generator_versions_tests module
regulations.tests.html_builder_test module
regulations.tests.label_tests module
regulations.tests.layers_appliers_test module
-
class
regulations.tests.layers_appliers_test.
LayersApplierTest
(methodName='runTest')[source]
Bases: unittest.case.TestCase
-
test_enqueue
()[source]
-
test_find_all_offsets
()[source]
-
test_find_offsets_no_pattern
()[source]
-
test_list_enqueue
()[source]
-
test_replace_all
()[source]
-
test_replace_at
()[source]
-
test_replace_at_case_sensitive
()[source]
-
test_replace_no_original
()[source]
-
test_replace_skip_location
()[source]
-
test_update_offset_starter
()[source]
-
test_update_offsets
()[source]
regulations.tests.layers_definitions_tests module
regulations.tests.layers_formatting_tests module
regulations.tests.layers_internal_citation_tests module
regulations.tests.layers_interpretations_tests module
regulations.tests.layers_location_replace_tests module
-
class
regulations.tests.layers_location_replace_tests.
LayersLocationReplaceTest
(methodName='runTest')[source]
Bases: unittest.case.TestCase
-
test_location_replace_text
()[source]
-
test_update_offsets_html
()[source]
regulations.tests.layers_paragraph_markers_tests module
regulations.tests.layers_toc_applier_tests module
regulations.tests.layers_utils_tests module
-
class
regulations.tests.layers_utils_tests.
LayerUtilsTest
(methodName='runTest')[source]
Bases: unittest.case.TestCase
-
test_convert_to_python
()[source]
-
test_is_contained_in
()[source]
regulations.tests.link_flattener_tests module
-
class
regulations.tests.link_flattener_tests.
LinkFlattenerTest
(methodName='runTest')[source]
Bases: unittest.case.TestCase
-
test_embedded_link
()[source]
-
test_multiple_level_embedded_links
()[source]
-
test_multiple_serial_embedded_links
()[source]
-
test_no_links
()[source]
-
test_real_world_example
()[source]
-
test_single_link
()[source]
-
test_unembedded_links
()[source]
regulations.tests.node_types_tests module
-
class
regulations.tests.node_types_tests.
NodeTypesTest
(methodName='runTest')[source]
Bases: unittest.case.TestCase
-
test_change_appendix
()[source]
-
test_label_to_text
()[source]
-
test_type_from_label
()[source]
regulations.tests.notices_tests module
-
class
regulations.tests.notices_tests.
NoticesTest
(methodName='runTest')[source]
Bases: unittest.case.TestCase
-
test_add_depths
()[source]
-
test_filter_children
()[source]
-
test_filter_children_no_candidates
()[source]
-
test_find_label_in_sxs_found
()[source]
-
test_find_label_in_sxs_not_found
()[source]
-
test_find_label_in_sxs_page
()[source]
-
test_find_label_in_sxs_top_no_label
()[source]
-
test_non_empty_sxs
()[source]
-
test_non_empty_sxs_has_children
()[source]
-
test_non_empty_sxs_no_paragraph
()[source]
regulations.tests.partial_view_tests module
regulations.tests.templatetags_macros_tests module
regulations.tests.title_parsing_tests module
-
class
regulations.tests.title_parsing_tests.
RegTest
(methodName='runTest')[source]
Bases: unittest.case.TestCase
-
test_appendix_supplement_ap
()[source]
-
test_section
()[source]
-
test_try_split
()[source]
regulations.tests.tree_builder_tests module
-
class
regulations.tests.tree_builder_tests.
TreeBuilderTest
(methodName='runTest')[source]
Bases: unittest.case.TestCase
-
build_tree
()[source]
-
test_add_child
()[source]
-
test_add_child_appendix
()[source]
-
test_add_child_interp
()[source]
-
test_add_child_odd_sort
()[source]
Appendices may have some strange orderings. Make sure they keep
order.
-
test_add_child_root_appendix
()[source]
Let’s add an introductory paragraph child to a root interpretation
node and ensure that the children are sorted correctly.
-
test_add_child_root_interp
()[source]
Let’s add an introductory paragraph child to a root interpretation
node and ensure that the children are sorted correctly.
-
test_add_node
()[source]
-
test_all_children_are_roman
()[source]
-
test_build_tree_hash
()[source]
-
test_make_label_sortable_not_roman
()[source]
-
test_make_label_sortable_roman
()[source]
-
test_parent_in_tree
()[source]
-
test_parent_label
()[source]
-
test_roman_nums
()[source]
regulations.tests.url_cache_tests module
regulations.tests.urls_test module
regulations.tests.views_breakaway_tests module
regulations.tests.views_chrome_tests module
regulations.tests.views_diff_tests module
regulations.tests.views_error_tests module
regulations.tests.views_landing_tests module
regulations.tests.views_navigation_tests module
regulations.tests.views_partial_definitions_tests module
regulations.tests.views_partial_interp_tests module
regulations.tests.views_partial_search_tests module
regulations.tests.views_preamble_tests module
regulations.tests.views_redirect_tests module
regulations.tests.views_sxs_tests module
regulations.tests.views_universal_tests module
regulations.tests.views_utils_test module
Module contents