Tests for list macros
Classes
Base class for testing macros used to list elements. See RunMacroTestCase for requirements. LsTest use the lists of elem_type generated by SarDemoEnv as reference for compare with the output of the tested ls macro.
Must be a valid type for SarDemoEnv class.
A helper method to evaluate if all elements of list1 are in list2. :params list1: (seq<str>) List of elements to evaluate. :params list2: (seq<str>) List of elements for validate.
Reimplementation of macro_runs method for ls macros. It verifies that elements (elem_type) gotten by parsing the macro executor log output are in the correspondent list (elem_type) of SardanaEnv.
Asserts that macro has finished.
Check that the macro fails to run for the given input parameters
Parameters: |
|
---|
Preconditions: - Those from BaseMacroTestCase - the macro executor registers to all the log levels
The macro_executor instance must be removed
Class used for testing the ‘lsm’ macro. It verifies that all motors created by sar_demo are listed after execution of the macro ‘lsm’.
Testing lsm with macro_runs()
Testing lsm with macro_runs(macro_params=[‘l.*’])
Class used for testing the ‘lsctrl’ macro. It verifies that all controllers created by sar_demo are listed after execution of the macro ‘lsctrl’.
Testing lsctrl with macro_runs()