Belle II Software development
|
Public Member Functions | |
def | setUp (self) |
def | check_parameters (self, module, **params) |
def | check_unset (self, module) |
def | test_simple (self) |
def | test_double (self) |
def | test_empty (self) |
def | test_missing (self) |
def | test_undefined_param (self) |
def | test_condition (self) |
def | test_condition_recursive (self) |
def | test_subevent (self) |
def | test_subevent_recursive (self) |
def | test_condition_subevent (self) |
Public Attributes | |
m1 | |
first test module | |
m2 | |
second test module | |
m3 | |
third test module | |
path | |
main test path | |
subpath | |
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.
def 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.
def check_unset | ( | self, | |
module | |||
) |
Check that all parameters of a given module are not set explicitely
Definition at line 50 of file module_setparameters.py.
def setUp | ( | self | ) |
Setup a path with a few EventInfoSetter modules with special names
Definition at line 20 of file module_setparameters.py.
def 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.
def 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.
def 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.
def 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.
def test_empty | ( | self | ) |
Make sure that not supplying any parameters gives a ValueError
Definition at line 75 of file module_setparameters.py.
def 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.
def 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.
def 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.
def 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.
def 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 |
first test module
Definition at line 23 of file module_setparameters.py.
m2 |
second test module
Definition at line 26 of file module_setparameters.py.
m3 |
third test module
Definition at line 29 of file module_setparameters.py.
path |
main test path
Definition at line 32 of file module_setparameters.py.
subpath |
secondary test path
Definition at line 34 of file module_setparameters.py.