Inheritance diagram for tests.test_devicedetection.DeviceDetectionTests:
Collaboration diagram for tests.test_devicedetection.DeviceDetectionTests:
Public Member Functions | |
| test_pipeline_builder_shareusage_init (self) | |
| Tests whether the device detection pipeline builder adds the usage sharing engine when initialised with a datafile. | |
| test_on_premise_engine_datafile (self) | |
| Tests whether a datafile (for the update service) is added when auto_update is set. | |
| test_properties_onpremise (self) | |
| Tests whether a properties list is created on the on premise engine. | |
| test_evidencekey_filter_onpremise (self) | |
| Tests whether the on premise evidence key filter works. | |
| test_basic_get_onpremise (self) | |
| Check property lookup works. | |
| test_process_with_no_evidence (self) | |
| Process a FlowData which does not have any evidence. | |
| test_process_with_empty_user_agent (self) | |
| Process a FlowData with an empty user agent. | |
| test_process_with_no_headers (self) | |
| Process a FlowData with no headers. | |
| test_process_with_no_useful_headers (self) | |
| Process a FlowData with no useful headers. | |
| test_case_insensitive_evidence_keys (self) | |
| Process a FlowData with case insensitive evidence keys. | |
| test_missing_property_service_not_found_anywhere (self) | |
| Trigger the missing property service by requesting a property not available in any datafile. | |
| test_missing_property_service_not_found_in_current (self) | |
| Trigger the missing property service by requesting a property not available in the current datafile. | |
| test_excluded_property (self) | |
| Test error if accessing property that has been restricted. | |
| test_evidencekey_filter_contains_user_agent (self) | |
| Test if evidence key filter with header.user-agent. | |
| test_evidencekey_filter_contains_device_stock_ua (self) | |
| Test if evidence key filter with header.device-stock-ua. | |
| test_evidencekey_filter_contains_query_params (self) | |
| Test if evidence key filter with query.user-agent query.device-stock-ua. | |
| test_evidencekey_filter_case_insensitive_keys (self) | |
| Test evidence key filter with case insensitive keys. | |
| test_evidencekey_filter_overrides (self) | |
| Test evidence key filter with overrides in cookies and query string. | |
| test_profile_overrides (self) | |
| Test profile overrides. | |
| test_profile_overrides_no_headers (self) | |
| Test profile overrides no headers. | |
| test_profile_overrides_deviceid (self) | |
| Test profile overrides with device ids. | |
| test_device_id (self) | |
| Test profile overrides with device ids. | |
| test_build_from_config (self) | |
| test_no_element_exists (self) | |
| Access flow element that doesn't exist in pipeline. | |
| test_has_value_false (self) | |
| Test aspect property value returns false for has value. | |
| test_matched_user_agents (self) | |
| Test aspect property value returns false for has value. | |
| test_value_types (self) | |
| Test type is returned correctly for property. | |
| test_available_properties (self) | |
| Test properties that come back from getProperties actually exist in engine. | |
| test_engine_init_performance (self) | |
| Test how long it takes for the engine to be initialised by looking at the metadata dictionary created on init. | |
| test_validate_data_true (self) | |
| Validate whether has_value returns correctly with valid evidence. | |
| test_validate_data_false (self) | |
| Validate whether has_value returns correctly with invalid evidence. | |
| test_engine_reload (self) | |
| Refresh the engine. | |
| test_flowdata_close_releases_results (self) | |
| Closing the FlowData releases its native results, and reading a property afterwards raises an exception. | |
| test_pipeline_close_releases_engine (self) | |
| Closing the pipeline releases the native engine, and processing afterwards raises an exception. | |
| test_pipeline_close_stops_updates (self) | |
| Closing the pipeline cancels the engine's next automatic update, whose timer would otherwise keep the engine alive. | |
| process_user_agent_list (self, pipeline) | |
Member Function Documentation
◆ process_user_agent_list()
| tests.test_devicedetection.DeviceDetectionTests.process_user_agent_list | ( | self, | |
| pipeline ) |
◆ test_available_properties()
| tests.test_devicedetection.DeviceDetectionTests.test_available_properties | ( | self | ) |
Test properties that come back from getProperties actually exist in engine.
◆ test_basic_get_onpremise()
| tests.test_devicedetection.DeviceDetectionTests.test_basic_get_onpremise | ( | self | ) |
Check property lookup works.
◆ test_build_from_config()
| tests.test_devicedetection.DeviceDetectionTests.test_build_from_config | ( | self | ) |
◆ test_case_insensitive_evidence_keys()
| tests.test_devicedetection.DeviceDetectionTests.test_case_insensitive_evidence_keys | ( | self | ) |
Process a FlowData with case insensitive evidence keys.
◆ test_device_id()
| tests.test_devicedetection.DeviceDetectionTests.test_device_id | ( | self | ) |
Test profile overrides with device ids.
◆ test_engine_init_performance()
| tests.test_devicedetection.DeviceDetectionTests.test_engine_init_performance | ( | self | ) |
Test how long it takes for the engine to be initialised by looking at the metadata dictionary created on init.
◆ test_engine_reload()
| tests.test_devicedetection.DeviceDetectionTests.test_engine_reload | ( | self | ) |
Refresh the engine.
◆ test_evidencekey_filter_case_insensitive_keys()
| tests.test_devicedetection.DeviceDetectionTests.test_evidencekey_filter_case_insensitive_keys | ( | self | ) |
Test evidence key filter with case insensitive keys.
◆ test_evidencekey_filter_contains_device_stock_ua()
| tests.test_devicedetection.DeviceDetectionTests.test_evidencekey_filter_contains_device_stock_ua | ( | self | ) |
Test if evidence key filter with header.device-stock-ua.
◆ test_evidencekey_filter_contains_query_params()
| tests.test_devicedetection.DeviceDetectionTests.test_evidencekey_filter_contains_query_params | ( | self | ) |
Test if evidence key filter with query.user-agent query.device-stock-ua.
◆ test_evidencekey_filter_contains_user_agent()
| tests.test_devicedetection.DeviceDetectionTests.test_evidencekey_filter_contains_user_agent | ( | self | ) |
Test if evidence key filter with header.user-agent.
◆ test_evidencekey_filter_onpremise()
| tests.test_devicedetection.DeviceDetectionTests.test_evidencekey_filter_onpremise | ( | self | ) |
Tests whether the on premise evidence key filter works.
◆ test_evidencekey_filter_overrides()
| tests.test_devicedetection.DeviceDetectionTests.test_evidencekey_filter_overrides | ( | self | ) |
Test evidence key filter with overrides in cookies and query string.
◆ test_excluded_property()
| tests.test_devicedetection.DeviceDetectionTests.test_excluded_property | ( | self | ) |
Test error if accessing property that has been restricted.
◆ test_flowdata_close_releases_results()
| tests.test_devicedetection.DeviceDetectionTests.test_flowdata_close_releases_results | ( | self | ) |
Closing the FlowData releases its native results, and reading a property afterwards raises an exception.
◆ test_has_value_false()
| tests.test_devicedetection.DeviceDetectionTests.test_has_value_false | ( | self | ) |
Test aspect property value returns false for has value.
◆ test_matched_user_agents()
| tests.test_devicedetection.DeviceDetectionTests.test_matched_user_agents | ( | self | ) |
Test aspect property value returns false for has value.
◆ test_missing_property_service_not_found_anywhere()
| tests.test_devicedetection.DeviceDetectionTests.test_missing_property_service_not_found_anywhere | ( | self | ) |
Trigger the missing property service by requesting a property not available in any datafile.
◆ test_missing_property_service_not_found_in_current()
| tests.test_devicedetection.DeviceDetectionTests.test_missing_property_service_not_found_in_current | ( | self | ) |
Trigger the missing property service by requesting a property not available in the current datafile.
◆ test_no_element_exists()
| tests.test_devicedetection.DeviceDetectionTests.test_no_element_exists | ( | self | ) |
Access flow element that doesn't exist in pipeline.
◆ test_on_premise_engine_datafile()
| tests.test_devicedetection.DeviceDetectionTests.test_on_premise_engine_datafile | ( | self | ) |
Tests whether a datafile (for the update service) is added when auto_update is set.
◆ test_pipeline_builder_shareusage_init()
| tests.test_devicedetection.DeviceDetectionTests.test_pipeline_builder_shareusage_init | ( | self | ) |
Tests whether the device detection pipeline builder adds the usage sharing engine when initialised with a datafile.
◆ test_pipeline_close_releases_engine()
| tests.test_devicedetection.DeviceDetectionTests.test_pipeline_close_releases_engine | ( | self | ) |
Closing the pipeline releases the native engine, and processing afterwards raises an exception.
◆ test_pipeline_close_stops_updates()
| tests.test_devicedetection.DeviceDetectionTests.test_pipeline_close_stops_updates | ( | self | ) |
Closing the pipeline cancels the engine's next automatic update, whose timer would otherwise keep the engine alive.
◆ test_process_with_empty_user_agent()
| tests.test_devicedetection.DeviceDetectionTests.test_process_with_empty_user_agent | ( | self | ) |
Process a FlowData with an empty user agent.
◆ test_process_with_no_evidence()
| tests.test_devicedetection.DeviceDetectionTests.test_process_with_no_evidence | ( | self | ) |
Process a FlowData which does not have any evidence.
This should not throw an error and all 51Degrees engines should set the default aspect properties
◆ test_process_with_no_headers()
| tests.test_devicedetection.DeviceDetectionTests.test_process_with_no_headers | ( | self | ) |
Process a FlowData with no headers.
◆ test_process_with_no_useful_headers()
| tests.test_devicedetection.DeviceDetectionTests.test_process_with_no_useful_headers | ( | self | ) |
Process a FlowData with no useful headers.
◆ test_profile_overrides()
| tests.test_devicedetection.DeviceDetectionTests.test_profile_overrides | ( | self | ) |
Test profile overrides.
◆ test_profile_overrides_deviceid()
| tests.test_devicedetection.DeviceDetectionTests.test_profile_overrides_deviceid | ( | self | ) |
Test profile overrides with device ids.
◆ test_profile_overrides_no_headers()
| tests.test_devicedetection.DeviceDetectionTests.test_profile_overrides_no_headers | ( | self | ) |
Test profile overrides no headers.
◆ test_properties_onpremise()
| tests.test_devicedetection.DeviceDetectionTests.test_properties_onpremise | ( | self | ) |
Tests whether a properties list is created on the on premise engine.
◆ test_validate_data_false()
| tests.test_devicedetection.DeviceDetectionTests.test_validate_data_false | ( | self | ) |
Validate whether has_value returns correctly with invalid evidence.
◆ test_validate_data_true()
| tests.test_devicedetection.DeviceDetectionTests.test_validate_data_true | ( | self | ) |
Validate whether has_value returns correctly with valid evidence.
◆ test_value_types()
| tests.test_devicedetection.DeviceDetectionTests.test_value_types | ( | self | ) |
Test type is returned correctly for property.
