Test case for the variables.utils functions
Definition at line 17 of file test_variables_utils.py.
◆ _expand_expected()
def _expand_expected |
( |
|
self, |
|
|
|
expected |
|
) |
| |
|
private |
Expand the list of expected aliases by appending _{name} for each variable in the _list_of_variables
Definition at line 23 of file test_variables_utils.py.
23 def _expand_expected(self, expected):
24 """Expand the list of expected aliases by appending _{name} for each variable in the _list_of_variables"""
28 result += [f
"{p}_{e}" for e
in self._list_of_variables]
30 result += self._list_of_variables
◆ assertAliases()
def assertAliases |
( |
|
self, |
|
|
|
decaystring, |
|
|
|
expected, |
|
|
** |
argk |
|
) |
| |
Make sure the aliases created for given decaystring are as expected
Also, pass any additional keyword arguments to the create_aliases_for_selected function
Definition at line 33 of file test_variables_utils.py.
◆ test_autoindex()
def test_autoindex |
( |
|
self | ) |
|
◆ test_autoindex_allindexed()
def test_autoindex_allindexed |
( |
|
self | ) |
|
◆ test_autoindex_allindexed_relative()
def test_autoindex_allindexed_relative |
( |
|
self | ) |
|
check decay-string-of-doom with automatic names, relative indexing and forced indices
Definition at line 152 of file test_variables_utils.py.
◆ test_autoindex_relative()
def test_autoindex_relative |
( |
|
self | ) |
|
◆ test_autonamed_granddaughter()
def test_autonamed_granddaughter |
( |
|
self | ) |
|
◆ test_fourdkp()
◆ test_inclusive()
def test_inclusive |
( |
|
self | ) |
|
◆ test_indexed()
◆ test_indexed_relativeignored()
def test_indexed_relativeignored |
( |
|
self | ) |
|
check decay-string-of-doom w/o automatic names and make sure relative indexing is **not** honored
Definition at line 186 of file test_variables_utils.py.
◆ test_multiple_autoname_granddaughters()
def test_multiple_autoname_granddaughters |
( |
|
self | ) |
|
Check multiple granddaughters can be selected for automatic name aliases
Definition at line 90 of file test_variables_utils.py.
◆ test_named_daughter()
def test_named_daughter |
( |
|
self | ) |
|
◆ test_named_mother_and_daughters()
def test_named_mother_and_daughters |
( |
|
self | ) |
|
◆ test_no_particle_selected()
def test_no_particle_selected |
( |
|
self | ) |
|
◆ test_number_of_prefix_mismatch()
def test_number_of_prefix_mismatch |
( |
|
self | ) |
|
Make sure we get an error if the number of supplied prefixes doesn't
match the number of selected particles
Definition at line 55 of file test_variables_utils.py.
◆ test_ohsomany_autonamed()
def test_ohsomany_autonamed |
( |
|
self | ) |
|
◆ test_ohsomany_autonamed_relative()
def test_ohsomany_autonamed_relative |
( |
|
self | ) |
|
◆ test_ohsomany_indexed()
def test_ohsomany_indexed |
( |
|
self | ) |
|
◆ test_prefixes_repeated()
def test_prefixes_repeated |
( |
|
self | ) |
|
Make sure we got an error if the supplied provided prefixes are not unique
Definition at line 63 of file test_variables_utils.py.
◆ test_threedkp()
def test_threedkp |
( |
|
self | ) |
|
◆ test_unnamed_daughter()
def test_unnamed_daughter |
( |
|
self | ) |
|
◆ test_unnamed_mother()
def test_unnamed_mother |
( |
|
self | ) |
|
◆ test_wrong_decaystring()
def test_wrong_decaystring |
( |
|
self | ) |
|
to add to the tests here, please add a test_something_something for you favourite complicated decay string
Make sure we get an error if the decaystring is not valid
Definition at line 45 of file test_variables_utils.py.
◆ test_zfinal()
The documentation for this class was generated from the following file: