ATLAS Offline Software
Loading...
Searching...
No Matches
python.EventSelectionConfigChaining_unitTest.TestRunNumber Class Reference
Inheritance diagram for python.EventSelectionConfigChaining_unitTest.TestRunNumber:
Collaboration diagram for python.EventSelectionConfigChaining_unitTest.TestRunNumber:

Public Member Functions

 test_random_run_number_depends_on_datatype (self)
 test_properties (self)

Detailed Description

Definition at line 49 of file EventSelectionConfigChaining_unitTest.py.

Member Function Documentation

◆ test_properties()

python.EventSelectionConfigChaining_unitTest.TestRunNumber.test_properties ( self)

Definition at line 56 of file EventSelectionConfigChaining_unitTest.py.

56 def test_properties(self):
57 algs = named(run("RUN_NUMBER >= 300000"), "RUN_NUMBER")
58 self.assertEqual(prop(algs[0], "sign"), "GE")
59 self.assertEqual(prop(algs[0], "runNumber"), 300000)
60
61
int run(int argc, char *argv[])

◆ test_random_run_number_depends_on_datatype()

python.EventSelectionConfigChaining_unitTest.TestRunNumber.test_random_run_number_depends_on_datatype ( self)

Definition at line 50 of file EventSelectionConfigChaining_unitTest.py.

50 def test_random_run_number_depends_on_datatype(self):
51 for dt, expected in [(DataType.Data, False), (DataType.FullSim, True)]:
52 with self.subTest(dataType=dt):
53 algs = named(run("RUN_NUMBER >= 300000", dataType=dt), "RUN_NUMBER")
54 self.assertEqual(prop(algs[0], "useRandomRunNumber"), expected)
55

The documentation for this class was generated from the following file: