Test Suite

class test_frontend.TestFrontend(methodName='runTest')[source]

Bases: unittest.case.TestCase

Test cases targetting pypuppetdbquery, and particularly pypuppetdbquery.parse().

test_empty_queries()[source]
test_simple_json()[source]
test_simple_raw()[source]
class test_integration.TestIntegration(methodName='runTest')[source]

Bases: unittest.case.TestCase

Test cases for the integrated combination of pypuppetdbquery.lexer.Lexer, pypuppetdbquery.parser.Parser, and pypuppetdbquery.evaluator.Evaluator.

setUp()[source]
test_boolean_values()[source]
test_capitalize_class_names()[source]
test_dates_in_queries()[source]
test_does_not_wrap_subquery_with_mode_none()[source]
test_double_quoted_strings()[source]
test_empty_queries()[source]
test_equals_operator()[source]
test_escape_non_match_parts_on_structured_facts_with_match_op()[source]
test_float_values()[source]
test_greater_than_eq_operator()[source]
test_greater_than_operator()[source]
test_less_than_eq_operator()[source]
test_less_than_operator()[source]
test_match_operator()[source]
test_negate_expressions()[source]
test_node_subqueries()[source]
test_node_subqueries_with_block_of_conditions()[source]
test_node_subqueries_with_fact_query()[source]
test_node_subquery_fact_field()[source]
test_not_equals_operator()[source]
test_not_match_operator()[source]
test_precedence_a()[source]
test_precedence_b()[source]
test_precedence_within_resource_parameter_queries_a()[source]
test_precedence_within_resource_parameter_queries_b()[source]
test_resource_queries_for_exported_resources()[source]
test_resource_queries_for_exported_resources_with_parameters()[source]
test_resource_queries_with_regexp_title_matching()[source]
test_resource_queries_with_tags()[source]
test_resource_queries_with_type_and_title()[source]
test_resource_queries_with_type_title_and_parameters()[source]
test_single_quoted_strings()[source]
test_single_string_expressions()[source]
test_structured_facts()[source]
test_structured_facts_with_array_component()[source]
test_structured_facts_with_match_operator()[source]
test_structured_facts_with_wildcard_operator()[source]
class test_lexer.TestLexer(methodName='runTest')[source]

Bases: unittest.case.TestCase

Test cases for pypuppetdbquery.lexer.Lexer.

setUp()[source]
test_all_tokens()[source]
test_empty_queries()[source]
test_invalid_input()[source]
class test_parser.TestParster(methodName='runTest')[source]

Bases: unittest.case.TestCase

Test cases for pypuppetdbquery.parser.Parser.

setUp()[source]
test_boolean_values()[source]
test_dates_in_queries()[source]
test_double_quoted_strings()[source]
test_empty_queries()[source]
test_float_values()[source]
test_invalid_input()[source]
test_invalid_input_eof()[source]
test_logical_operators()[source]
test_negate_expression()[source]
test_node_subqueries()[source]
test_node_subqueries_with_block_of_conditions()[source]
test_resource_queries_for_exported_resources()[source]
test_resource_queries_for_exported_resources_with_parameters()[source]
test_resource_queries_with_type_and_regexp_identifier()[source]
test_resource_queries_with_type_title_and_parameters()[source]
test_single_string_expressions()[source]
test_structured_facts_with_wildcard_operator()[source]