Test case for charged standard particle lists
Definition at line 26 of file test_std_charged.py.
◆ _check_function_call()
def _check_function_call |
( |
|
self, |
|
|
|
functions = _base_functions , |
|
|
|
expectedlist = stdCharged._defaultlist |
|
) |
| |
|
private |
check that a function works (i.e. adds a particle loader)
Definition at line 57 of file test_std_charged.py.
57 def _check_function_call(self, functions=_base_functions, expectedlist=stdCharged._defaultlist):
58 """check that a function works (i.e. adds a particle loader)"""
60 testpath = create_path()
63 len(testpath.modules()), 3,
64 "Function %s doesn't work" % f.__name__)
65 self.assertTrue(any(module.type() ==
"ParticleLoader" for module
in testpath.modules()))
66 loader = testpath.modules()[0]
67 self._check_list_name(expectedlist, f.__name__, loader)
◆ _check_list_name()
def _check_list_name |
( |
|
self, |
|
|
|
target, |
|
|
|
functionname, |
|
|
|
particleloader |
|
) |
| |
|
private |
Check that the list name we expect is the one that was
actually added to the ParticleLoader
Definition at line 29 of file test_std_charged.py.
◆ _check_listtype_does_not_exist()
def _check_listtype_does_not_exist |
( |
|
self, |
|
|
|
listtype, |
|
|
|
functions = _base_functions |
|
) |
| |
|
private |
check that a given listtype function doesn't do anything
Definition at line 69 of file test_std_charged.py.
◆ _check_listtype_exists()
def _check_listtype_exists |
( |
|
self, |
|
|
|
listtype, |
|
|
|
functions = _base_functions |
|
) |
| |
|
private |
◆ test_all_list()
def test_all_list |
( |
|
self | ) |
|
check that the builder functions all work with the all list
Definition at line 83 of file test_std_charged.py.
◆ test_good_list()
def test_good_list |
( |
|
self | ) |
|
check that the builder functions all work with the good list
Definition at line 87 of file test_std_charged.py.
◆ test_higheff()
check that the builder functions all work with the higheff list
Definition at line 93 of file test_std_charged.py.
◆ test_loose()
check that the builder functions all work with the loose list
Definition at line 97 of file test_std_charged.py.
◆ test_mostLikely_lists()
def test_mostLikely_lists |
( |
|
self | ) |
|
check that the builder functions work with the mostLikely lists
Definition at line 118 of file test_std_charged.py.
◆ test_nonesense_list()
def test_nonesense_list |
( |
|
self | ) |
|
check that the builder functions fail with a nonexisting list
Definition at line 79 of file test_std_charged.py.
◆ test_percentile_eff()
def test_percentile_eff |
( |
|
self | ) |
|
check that the builder functions all work with the percentile eff lists
Definition at line 101 of file test_std_charged.py.
The documentation for this class was generated from the following file: