Test case for charged standard particle lists
Definition at line 25 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 56 of file test_std_charged.py.
56 def _check_function_call(self, functions=_base_functions, expectedlist=stdCharged._defaultlist):
57 """check that a function works (i.e. adds a particle loader)"""
59 testpath = create_path()
62 len(testpath.modules()), 3,
63 "Function %s doesn't work" % f.__name__)
64 self.assertTrue(any(module.type() ==
"ParticleLoader" for module
in testpath.modules()))
65 loader = testpath.modules()[0]
66 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 28 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 68 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 82 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 86 of file test_std_charged.py.
◆ test_higheff()
check that the builder functions all work with the higheff list
Definition at line 92 of file test_std_charged.py.
◆ test_loose()
check that the builder functions all work with the loose list
Definition at line 96 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 117 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 78 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 100 of file test_std_charged.py.
The documentation for this class was generated from the following file: