Public Member Functions | Public Attributes | List of all members
test_xacro.TestXacro Class Reference
Inheritance diagram for test_xacro.TestXacro:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, *args, **kwargs)
 
def test_arg_function (self)
 
def test_boolean_if_statement (self)
 
def test_broken_include_error_reporting (self)
 
def test_broken_input_doesnt_create_empty_output_file (self)
 
def test_comments (self)
 
def test_consecutive_if (self)
 
def test_consider_non_elements_block (self)
 
def test_consider_non_elements_if (self)
 
def test_create_subdirs (self)
 
def test_default_arg (self)
 
def test_default_arg_empty (self)
 
def test_default_arg_missing (self)
 
def test_default_arg_override (self)
 
def test_default_param (self)
 
def test_default_param_override (self)
 
def test_default_property (self)
 
def test_dotify (self)
 
def test_double_underscore_property_name_raises (self)
 
def test_dynamic_macro_name_clash (self)
 
def test_dynamic_macro_names (self)
 
def test_dynamic_macro_undefined (self)
 
def test_enforce_xacro_ns (self)
 
def test_equality_expression_in_if_statement (self)
 
def test_error_reporting (self)
 
def test_escaping_dollar_braces (self)
 
def test_evaluate_macro_params_before_body (self)
 
def test_expression_in_extension (self)
 
def test_extension_in_expression (self)
 
def test_float_if_statement (self)
 
def test_from_issue (self)
 
def test_greedy_property_evaluation (self)
 
def test_ignore_xacro_comments (self)
 
def test_include (self)
 
def test_include_deprecated (self)
 
def test_include_from_macro (self)
 
def test_include_from_variable (self)
 
def test_include_glob (self)
 
def test_include_lazy (self)
 
def test_include_nonexistent (self)
 
def test_include_recursive (self)
 
def test_include_with_namespace (self)
 
def test_inorder_processing (self)
 
def test_insert_block_property (self)
 
def test_integer_if_statement (self)
 
def test_integer_stays_integer (self)
 
def test_invalid_if_statement (self)
 
def test_invalid_property_definitions (self)
 
def test_invalid_property_name (self)
 
def test_invalid_syntax (self)
 
def test_issue_63_fixed_with_inorder_processing (self)
 
def test_issue_68_numeric_arg (self)
 
def test_iterable_literals_eval (self)
 
def test_iterable_literals_plain (self)
 
def test_just_a_dollar_sign (self)
 
def test_literals_eval (self)
 
def test_macro_default_param_evaluation_order (self)
 
def test_macro_has_new_scope (self)
 
def test_macro_name_with_colon (self)
 
def test_macro_params_escaped_string (self)
 
def test_macro_undefined (self)
 
def test_math_expressions (self)
 
def test_math_ignores_spaces (self)
 
def test_message_functions (self)
 
def test_multi_tree_evaluation (self)
 
def test_multiple_blocks (self)
 
def test_multiple_definition_and_evaluation (self)
 
def test_multiple_insert_blocks (self)
 
def test_multiple_recursive_evaluation (self)
 
def test_namespace_propagation (self)
 
def test_no_double_evaluation (self)
 
def test_no_evaluation (self)
 
def test_overwrite_globals (self)
 
def test_param_missing (self)
 
def test_print_location (self)
 
def test_property_forwarding (self)
 
def test_property_if_statement (self)
 
def test_property_in_comprehension (self)
 
def test_property_replacement (self)
 
def test_property_resolution_with_namespaced_include (self)
 
def test_property_scope_global (self)
 
def test_property_scope_parent (self)
 
def test_property_scope_parent_namespaced (self)
 
def test_recursive_bad_math (self)
 
def test_recursive_definition (self)
 
def test_recursive_evaluation (self)
 
def test_recursive_evaluation_wrong_order (self)
 
def test_redefine_global_symbol (self)
 
def test_remove_property (self)
 
def test_restricted_builtins (self)
 
def test_restricted_builtins_nested (self)
 
def test_safe_eval (self)
 
def test_should_replace_before_macroexpand (self)
 
def test_substitution_args_arg (self)
 
def test_substitution_args_find (self)
 
def test_target_namespace (self)
 
def test_target_namespace_only_from_root (self)
 
def test_transitive_arg_evaluation (self)
 
def test_transitive_evaluation (self)
 
def test_unicode_conditional (self)
 
def test_unicode_file (self)
 
def test_unicode_literal_parsing (self)
 
def test_unicode_macro (self)
 
def test_unicode_property (self)
 
def test_unicode_property_attribute (self)
 
def test_unicode_property_block (self)
 
def test_xacro_attribute (self)
 
def test_xacro_element (self)
 
def test_xacro_exist_optional (self)
 
def test_xacro_exist_required (self)
 
def test_xml_namespace_lifting (self)
 
def test_yaml_custom_constructors (self)
 
def test_yaml_custom_constructors_illegal_expr (self)
 
def test_yaml_hasattr_support (self)
 
def test_yaml_support (self)
 
def test_yaml_support_dotted (self)
 
def test_yaml_support_dotted_arith (self)
 
def test_yaml_support_dotted_key_error (self)
 
def test_yaml_support_dotted_list_iterator (self)
 
def test_yaml_support_key_in_dict (self)
 
def test_yaml_support_list_of_x (self)
 
- Public Member Functions inherited from test_xacro.TestXacroCommentsIgnored
def test_pr2 (self)
 
- Public Member Functions inherited from test_xacro.TestXacroBase
def assert_matches (self, a, b)
 
def quick_xacro (self, xml, cli=None, **kwargs)
 
def run_xacro (self, input_path, *args)
 

Public Attributes

 ignore_nodes
 
- Public Attributes inherited from test_xacro.TestXacroCommentsIgnored
 ignore_nodes
 
- Public Attributes inherited from test_xacro.TestXacroBase
 ignore_nodes
 

Detailed Description

Definition at line 418 of file test_xacro.py.

Constructor & Destructor Documentation

◆ __init__()

def test_xacro.TestXacro.__init__ (   self,
args,
**  kwargs 
)

Reimplemented from test_xacro.TestXacroCommentsIgnored.

Definition at line 419 of file test_xacro.py.

Member Function Documentation

◆ test_arg_function()

def test_xacro.TestXacro.test_arg_function (   self)

Definition at line 1104 of file test_xacro.py.

◆ test_boolean_if_statement()

def test_xacro.TestXacro.test_boolean_if_statement (   self)

Definition at line 715 of file test_xacro.py.

◆ test_broken_include_error_reporting()

def test_xacro.TestXacro.test_broken_include_error_reporting (   self)

Definition at line 1109 of file test_xacro.py.

◆ test_broken_input_doesnt_create_empty_output_file()

def test_xacro.TestXacro.test_broken_input_doesnt_create_empty_output_file (   self)

Definition at line 1115 of file test_xacro.py.

◆ test_comments()

def test_xacro.TestXacro.test_comments (   self)

Definition at line 1307 of file test_xacro.py.

◆ test_consecutive_if()

def test_xacro.TestXacro.test_consecutive_if (   self)

Definition at line 782 of file test_xacro.py.

◆ test_consider_non_elements_block()

def test_xacro.TestXacro.test_consider_non_elements_block (   self)

Definition at line 845 of file test_xacro.py.

◆ test_consider_non_elements_if()

def test_xacro.TestXacro.test_consider_non_elements_if (   self)

Definition at line 838 of file test_xacro.py.

◆ test_create_subdirs()

def test_xacro.TestXacro.test_create_subdirs (   self)

Definition at line 1127 of file test_xacro.py.

◆ test_default_arg()

def test_xacro.TestXacro.test_default_arg (   self)

Definition at line 1062 of file test_xacro.py.

◆ test_default_arg_empty()

def test_xacro.TestXacro.test_default_arg_empty (   self)

Definition at line 1099 of file test_xacro.py.

◆ test_default_arg_missing()

def test_xacro.TestXacro.test_default_arg_missing (   self)

Definition at line 1092 of file test_xacro.py.

◆ test_default_arg_override()

def test_xacro.TestXacro.test_default_arg_override (   self)

Definition at line 1077 of file test_xacro.py.

◆ test_default_param()

def test_xacro.TestXacro.test_default_param (   self)

Definition at line 998 of file test_xacro.py.

◆ test_default_param_override()

def test_xacro.TestXacro.test_default_param_override (   self)

Definition at line 1022 of file test_xacro.py.

◆ test_default_property()

def test_xacro.TestXacro.test_default_property (   self)

Definition at line 1552 of file test_xacro.py.

◆ test_dotify()

def test_xacro.TestXacro.test_dotify (   self)

Definition at line 1400 of file test_xacro.py.

◆ test_double_underscore_property_name_raises()

def test_xacro.TestXacro.test_double_underscore_property_name_raises (   self)

Definition at line 428 of file test_xacro.py.

◆ test_dynamic_macro_name_clash()

def test_xacro.TestXacro.test_dynamic_macro_name_clash (   self)

Definition at line 445 of file test_xacro.py.

◆ test_dynamic_macro_names()

def test_xacro.TestXacro.test_dynamic_macro_names (   self)

Definition at line 435 of file test_xacro.py.

◆ test_dynamic_macro_undefined()

def test_xacro.TestXacro.test_dynamic_macro_undefined (   self)

Definition at line 452 of file test_xacro.py.

◆ test_enforce_xacro_ns()

def test_xacro.TestXacro.test_enforce_xacro_ns (   self)

Definition at line 1176 of file test_xacro.py.

◆ test_equality_expression_in_if_statement()

def test_xacro.TestXacro.test_equality_expression_in_if_statement (   self)

Definition at line 788 of file test_xacro.py.

◆ test_error_reporting()

def test_xacro.TestXacro.test_error_reporting (   self)

Definition at line 1283 of file test_xacro.py.

◆ test_escaping_dollar_braces()

def test_xacro.TestXacro.test_escaping_dollar_braces (   self)

Definition at line 574 of file test_xacro.py.

◆ test_evaluate_macro_params_before_body()

def test_xacro.TestXacro.test_evaluate_macro_params_before_body (   self)

Definition at line 515 of file test_xacro.py.

◆ test_expression_in_extension()

def test_xacro.TestXacro.test_expression_in_extension (   self)

Definition at line 1259 of file test_xacro.py.

◆ test_extension_in_expression()

def test_xacro.TestXacro.test_extension_in_expression (   self)

Definition at line 1254 of file test_xacro.py.

◆ test_float_if_statement()

def test_xacro.TestXacro.test_float_if_statement (   self)

Definition at line 755 of file test_xacro.py.

◆ test_from_issue()

def test_xacro.TestXacro.test_from_issue (   self)

Definition at line 976 of file test_xacro.py.

◆ test_greedy_property_evaluation()

def test_xacro.TestXacro.test_greedy_property_evaluation (   self)

Definition at line 916 of file test_xacro.py.

◆ test_ignore_xacro_comments()

def test_xacro.TestXacro.test_ignore_xacro_comments (   self)

Definition at line 865 of file test_xacro.py.

◆ test_include()

def test_xacro.TestXacro.test_include (   self)

Definition at line 642 of file test_xacro.py.

◆ test_include_deprecated()

def test_xacro.TestXacro.test_include_deprecated (   self)

Definition at line 657 of file test_xacro.py.

◆ test_include_from_macro()

def test_xacro.TestXacro.test_include_from_macro (   self)

Definition at line 1382 of file test_xacro.py.

◆ test_include_from_variable()

def test_xacro.TestXacro.test_include_from_variable (   self)

Definition at line 664 of file test_xacro.py.

◆ test_include_glob()

def test_xacro.TestXacro.test_include_glob (   self)

Definition at line 646 of file test_xacro.py.

◆ test_include_lazy()

def test_xacro.TestXacro.test_include_lazy (   self)

Definition at line 1351 of file test_xacro.py.

◆ test_include_nonexistent()

def test_xacro.TestXacro.test_include_nonexistent (   self)

Definition at line 652 of file test_xacro.py.

◆ test_include_recursive()

def test_xacro.TestXacro.test_include_recursive (   self)

Definition at line 670 of file test_xacro.py.

◆ test_include_with_namespace()

def test_xacro.TestXacro.test_include_with_namespace (   self)

Definition at line 679 of file test_xacro.py.

◆ test_inorder_processing()

def test_xacro.TestXacro.test_inorder_processing (   self)

Definition at line 484 of file test_xacro.py.

◆ test_insert_block_property()

def test_xacro.TestXacro.test_insert_block_property (   self)

Definition at line 627 of file test_xacro.py.

◆ test_integer_if_statement()

def test_xacro.TestXacro.test_integer_if_statement (   self)

Definition at line 735 of file test_xacro.py.

◆ test_integer_stays_integer()

def test_xacro.TestXacro.test_integer_stays_integer (   self)

Definition at line 616 of file test_xacro.py.

◆ test_invalid_if_statement()

def test_xacro.TestXacro.test_invalid_if_statement (   self)

Definition at line 729 of file test_xacro.py.

◆ test_invalid_property_definitions()

def test_xacro.TestXacro.test_invalid_property_definitions (   self)

Definition at line 1636 of file test_xacro.py.

◆ test_invalid_property_name()

def test_xacro.TestXacro.test_invalid_property_name (   self)

Definition at line 423 of file test_xacro.py.

◆ test_invalid_syntax()

def test_xacro.TestXacro.test_invalid_syntax (   self)

Definition at line 1629 of file test_xacro.py.

◆ test_issue_63_fixed_with_inorder_processing()

def test_xacro.TestXacro.test_issue_63_fixed_with_inorder_processing (   self)

Definition at line 1356 of file test_xacro.py.

◆ test_issue_68_numeric_arg()

def test_xacro.TestXacro.test_issue_68_numeric_arg (   self)

Definition at line 1187 of file test_xacro.py.

◆ test_iterable_literals_eval()

def test_xacro.TestXacro.test_iterable_literals_eval (   self)

Definition at line 1152 of file test_xacro.py.

◆ test_iterable_literals_plain()

def test_xacro.TestXacro.test_iterable_literals_plain (   self)

Definition at line 1140 of file test_xacro.py.

◆ test_just_a_dollar_sign()

def test_xacro.TestXacro.test_just_a_dollar_sign (   self)

Definition at line 579 of file test_xacro.py.

◆ test_literals_eval()

def test_xacro.TestXacro.test_literals_eval (   self)

Definition at line 1164 of file test_xacro.py.

◆ test_macro_default_param_evaluation_order()

def test_xacro.TestXacro.test_macro_default_param_evaluation_order (   self)

Definition at line 1537 of file test_xacro.py.

◆ test_macro_has_new_scope()

def test_xacro.TestXacro.test_macro_has_new_scope (   self)

Definition at line 694 of file test_xacro.py.

◆ test_macro_name_with_colon()

def test_xacro.TestXacro.test_macro_name_with_colon (   self)

Definition at line 1215 of file test_xacro.py.

◆ test_macro_params_escaped_string()

def test_xacro.TestXacro.test_macro_params_escaped_string (   self)

Definition at line 521 of file test_xacro.py.

◆ test_macro_undefined()

def test_xacro.TestXacro.test_macro_undefined (   self)

Definition at line 458 of file test_xacro.py.

◆ test_math_expressions()

def test_xacro.TestXacro.test_math_expressions (   self)

Definition at line 810 of file test_xacro.py.

◆ test_math_ignores_spaces()

def test_xacro.TestXacro.test_math_ignores_spaces (   self)

Definition at line 562 of file test_xacro.py.

◆ test_message_functions()

def test_xacro.TestXacro.test_message_functions (   self)

Definition at line 1274 of file test_xacro.py.

◆ test_multi_tree_evaluation()

def test_xacro.TestXacro.test_multi_tree_evaluation (   self)

Definition at line 962 of file test_xacro.py.

◆ test_multiple_blocks()

def test_xacro.TestXacro.test_multiple_blocks (   self)

Definition at line 597 of file test_xacro.py.

◆ test_multiple_definition_and_evaluation()

def test_xacro.TestXacro.test_multiple_definition_and_evaluation (   self)

Definition at line 936 of file test_xacro.py.

◆ test_multiple_insert_blocks()

def test_xacro.TestXacro.test_multiple_insert_blocks (   self)

Definition at line 583 of file test_xacro.py.

◆ test_multiple_recursive_evaluation()

def test_xacro.TestXacro.test_multiple_recursive_evaluation (   self)

Definition at line 923 of file test_xacro.py.

◆ test_namespace_propagation()

def test_xacro.TestXacro.test_namespace_propagation (   self)

Definition at line 1394 of file test_xacro.py.

◆ test_no_double_evaluation()

def test_xacro.TestXacro.test_no_double_evaluation (   self)

Definition at line 1232 of file test_xacro.py.

◆ test_no_evaluation()

def test_xacro.TestXacro.test_no_evaluation (   self)

Definition at line 800 of file test_xacro.py.

◆ test_overwrite_globals()

def test_xacro.TestXacro.test_overwrite_globals (   self)

Definition at line 1225 of file test_xacro.py.

◆ test_param_missing()

def test_xacro.TestXacro.test_param_missing (   self)

Definition at line 1046 of file test_xacro.py.

◆ test_print_location()

def test_xacro.TestXacro.test_print_location (   self)

Definition at line 1329 of file test_xacro.py.

◆ test_property_forwarding()

def test_xacro.TestXacro.test_property_forwarding (   self)

Definition at line 1243 of file test_xacro.py.

◆ test_property_if_statement()

def test_xacro.TestXacro.test_property_if_statement (   self)

Definition at line 769 of file test_xacro.py.

◆ test_property_in_comprehension()

def test_xacro.TestXacro.test_property_in_comprehension (   self)

Definition at line 554 of file test_xacro.py.

◆ test_property_replacement()

def test_xacro.TestXacro.test_property_replacement (   self)

Definition at line 527 of file test_xacro.py.

◆ test_property_resolution_with_namespaced_include()

def test_xacro.TestXacro.test_property_resolution_with_namespaced_include (   self)

Definition at line 1366 of file test_xacro.py.

◆ test_property_scope_global()

def test_xacro.TestXacro.test_property_scope_global (   self)

Definition at line 543 of file test_xacro.py.

◆ test_property_scope_parent()

def test_xacro.TestXacro.test_property_scope_parent (   self)

Definition at line 535 of file test_xacro.py.

◆ test_property_scope_parent_namespaced()

def test_xacro.TestXacro.test_property_scope_parent_namespaced (   self)

Definition at line 1409 of file test_xacro.py.

◆ test_recursive_bad_math()

def test_xacro.TestXacro.test_recursive_bad_math (   self)

Definition at line 991 of file test_xacro.py.

◆ test_recursive_definition()

def test_xacro.TestXacro.test_recursive_definition (   self)

Definition at line 904 of file test_xacro.py.

◆ test_recursive_evaluation()

def test_xacro.TestXacro.test_recursive_evaluation (   self)

Definition at line 882 of file test_xacro.py.

◆ test_recursive_evaluation_wrong_order()

def test_xacro.TestXacro.test_recursive_evaluation_wrong_order (   self)

Definition at line 893 of file test_xacro.py.

◆ test_redefine_global_symbol()

def test_xacro.TestXacro.test_redefine_global_symbol (   self)

Definition at line 1342 of file test_xacro.py.

◆ test_remove_property()

def test_xacro.TestXacro.test_remove_property (   self)

Definition at line 1651 of file test_xacro.py.

◆ test_restricted_builtins()

def test_xacro.TestXacro.test_restricted_builtins (   self)

Definition at line 820 of file test_xacro.py.

◆ test_restricted_builtins_nested()

def test_xacro.TestXacro.test_restricted_builtins_nested (   self)

Definition at line 824 of file test_xacro.py.

◆ test_safe_eval()

def test_xacro.TestXacro.test_safe_eval (   self)

Definition at line 834 of file test_xacro.py.

◆ test_should_replace_before_macroexpand()

def test_xacro.TestXacro.test_should_replace_before_macroexpand (   self)

Definition at line 503 of file test_xacro.py.

◆ test_substitution_args_arg()

def test_xacro.TestXacro.test_substitution_args_arg (   self)

Definition at line 570 of file test_xacro.py.

◆ test_substitution_args_find()

def test_xacro.TestXacro.test_substitution_args_find (   self)

Definition at line 566 of file test_xacro.py.

◆ test_target_namespace()

def test_xacro.TestXacro.test_target_namespace (   self)

Definition at line 1264 of file test_xacro.py.

◆ test_target_namespace_only_from_root()

def test_xacro.TestXacro.test_target_namespace_only_from_root (   self)

Definition at line 1269 of file test_xacro.py.

◆ test_transitive_arg_evaluation()

def test_xacro.TestXacro.test_transitive_arg_evaluation (   self)

Definition at line 1202 of file test_xacro.py.

◆ test_transitive_evaluation()

def test_xacro.TestXacro.test_transitive_evaluation (   self)

Definition at line 949 of file test_xacro.py.

◆ test_unicode_conditional()

def test_xacro.TestXacro.test_unicode_conditional (   self)

Definition at line 1597 of file test_xacro.py.

◆ test_unicode_file()

def test_xacro.TestXacro.test_unicode_file (   self)

Definition at line 1617 of file test_xacro.py.

◆ test_unicode_literal_parsing()

def test_xacro.TestXacro.test_unicode_literal_parsing (   self)

Definition at line 1570 of file test_xacro.py.

◆ test_unicode_macro()

def test_xacro.TestXacro.test_unicode_macro (   self)

Definition at line 1607 of file test_xacro.py.

◆ test_unicode_property()

def test_xacro.TestXacro.test_unicode_property (   self)

Definition at line 1574 of file test_xacro.py.

◆ test_unicode_property_attribute()

def test_xacro.TestXacro.test_unicode_property_attribute (   self)

Definition at line 1581 of file test_xacro.py.

◆ test_unicode_property_block()

def test_xacro.TestXacro.test_unicode_property_block (   self)

Definition at line 1588 of file test_xacro.py.

◆ test_xacro_attribute()

def test_xacro.TestXacro.test_xacro_attribute (   self)

Definition at line 473 of file test_xacro.py.

◆ test_xacro_element()

def test_xacro.TestXacro.test_xacro_element (   self)

Definition at line 464 of file test_xacro.py.

◆ test_xacro_exist_optional()

def test_xacro.TestXacro.test_xacro_exist_optional (   self)

Definition at line 1529 of file test_xacro.py.

◆ test_xacro_exist_required()

def test_xacro.TestXacro.test_xacro_exist_required (   self)

Definition at line 1522 of file test_xacro.py.

◆ test_xml_namespace_lifting()

def test_xacro.TestXacro.test_xml_namespace_lifting (   self)

Definition at line 1297 of file test_xacro.py.

◆ test_yaml_custom_constructors()

def test_xacro.TestXacro.test_yaml_custom_constructors (   self)

Definition at line 1499 of file test_xacro.py.

◆ test_yaml_custom_constructors_illegal_expr()

def test_xacro.TestXacro.test_yaml_custom_constructors_illegal_expr (   self)

Definition at line 1508 of file test_xacro.py.

◆ test_yaml_hasattr_support()

def test_xacro.TestXacro.test_yaml_hasattr_support (   self)

Definition at line 1517 of file test_xacro.py.

◆ test_yaml_support()

def test_xacro.TestXacro.test_yaml_support (   self)

Definition at line 1428 of file test_xacro.py.

◆ test_yaml_support_dotted()

def test_xacro.TestXacro.test_yaml_support_dotted (   self)

Definition at line 1441 of file test_xacro.py.

◆ test_yaml_support_dotted_arith()

def test_xacro.TestXacro.test_yaml_support_dotted_arith (   self)

Definition at line 1463 of file test_xacro.py.

◆ test_yaml_support_dotted_key_error()

def test_xacro.TestXacro.test_yaml_support_dotted_key_error (   self)

Definition at line 1454 of file test_xacro.py.

◆ test_yaml_support_dotted_list_iterator()

def test_xacro.TestXacro.test_yaml_support_dotted_list_iterator (   self)

Definition at line 1491 of file test_xacro.py.

◆ test_yaml_support_key_in_dict()

def test_xacro.TestXacro.test_yaml_support_key_in_dict (   self)

Definition at line 1473 of file test_xacro.py.

◆ test_yaml_support_list_of_x()

def test_xacro.TestXacro.test_yaml_support_list_of_x (   self)

Definition at line 1482 of file test_xacro.py.

Member Data Documentation

◆ ignore_nodes

test_xacro.TestXacro.ignore_nodes

Definition at line 421 of file test_xacro.py.


The documentation for this class was generated from the following file:


xacro
Author(s): Stuart Glaser, William Woodall, Robert Haschke
autogenerated on Sat Jan 11 2025 03:50:37