![]() |
Belle II Software development
|
Public Member Functions | |
setUp (self) | |
check_parameters (self, module, **params) | |
check_unset (self, module) | |
test_simple (self) | |
test_double (self) | |
test_empty (self) | |
test_missing (self) | |
test_undefined_param (self) | |
test_condition (self) | |
test_condition_recursive (self) | |
test_subevent (self) | |
test_subevent_recursive (self) | |
test_condition_subevent (self) | |
Public Attributes | |
m1 = basf2.register_module("EventInfoSetter") | |
first test module | |
m2 = basf2.register_module("EventInfoSetter") | |
second test module | |
m3 = basf2.register_module("EventInfoSetter") | |
third test module | |
path = basf2.create_path() | |
main test path | |
subpath = basf2.create_path() | |
secondary test path | |
Test fixture to check setting of parameters for modules in a path by name
Definition at line 17 of file module_setparameters.py.
check_parameters | ( | self, | |
module, | |||
** | params ) |
Check if the parameters of a module are set explicitly to a given value module: basf2.Module instance params: named parameters of to check for
Definition at line 39 of file module_setparameters.py.
check_unset | ( | self, | |
module ) |
Check that all parameters of a given module are not set explicitly
Definition at line 50 of file module_setparameters.py.
setUp | ( | self | ) |
Setup a path with a few EventInfoSetter modules with special names
Definition at line 20 of file module_setparameters.py.
test_condition | ( | self | ) |
check that modules in a condition sub path are not affected by default
Definition at line 90 of file module_setparameters.py.
test_condition_recursive | ( | self | ) |
check that modules in a condition sub path are affected in recursive mode
Definition at line 98 of file module_setparameters.py.
test_condition_subevent | ( | self | ) |
check that it also works with a conditions and a for_each sub path in recursive mode
Definition at line 122 of file module_setparameters.py.
test_double | ( | self | ) |
Check that it also works if more than one module with the name exists
Definition at line 67 of file module_setparameters.py.
test_empty | ( | self | ) |
Make sure that not supplying any parameters gives a ValueError
Definition at line 75 of file module_setparameters.py.
test_missing | ( | self | ) |
Make sure that not finding any module of the given name raises a KeyError
Definition at line 80 of file module_setparameters.py.
test_simple | ( | self | ) |
Check setting the parameters for one module and that it does not affect the other modules
Definition at line 55 of file module_setparameters.py.
test_subevent | ( | self | ) |
check that modules in a for_each sub path are not affected by default
Definition at line 106 of file module_setparameters.py.
test_subevent_recursive | ( | self | ) |
check that modules in a for_each sub path are affected in recursive mode
Definition at line 114 of file module_setparameters.py.
test_undefined_param | ( | self | ) |
Make sure that being unable to set the parameter raises a RuntimeError
Definition at line 85 of file module_setparameters.py.
m1 = basf2.register_module("EventInfoSetter") |
first test module
Definition at line 23 of file module_setparameters.py.
m2 = basf2.register_module("EventInfoSetter") |
second test module
Definition at line 26 of file module_setparameters.py.
m3 = basf2.register_module("EventInfoSetter") |
third test module
Definition at line 29 of file module_setparameters.py.
path = basf2.create_path() |
main test path
Definition at line 32 of file module_setparameters.py.
subpath = basf2.create_path() |
secondary test path
Definition at line 34 of file module_setparameters.py.