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

Public Member Functions

 test_missing_input_raises (self)
 test_wrong_argcount_raises (self)

Detailed Description

Definition at line 57 of file EventSelectionConfigNObject_unitTest.py.

Member Function Documentation

◆ test_missing_input_raises()

python.EventSelectionConfigNObject_unitTest.TestNObjectErrors.test_missing_input_raises ( self)

Definition at line 58 of file EventSelectionConfigNObject_unitTest.py.

58 def test_missing_input_raises(self):
59 for kw, (opt, _) in FAMILY.items():
60 if kw == "LJET_N": # no missing-input guard in the source
61 continue
62 with self.subTest(kw=kw):
63 self.assertRaises(ValueError, run, f"{kw} 25000 >= 2")
64

◆ test_wrong_argcount_raises()

python.EventSelectionConfigNObject_unitTest.TestNObjectErrors.test_wrong_argcount_raises ( self)

Definition at line 65 of file EventSelectionConfigNObject_unitTest.py.

65 def test_wrong_argcount_raises(self):
66 for kw, (opt, val) in FAMILY.items():
67 with self.subTest(kw=kw):
68 self.assertRaises(ValueError, run,
69 f"{kw} 25000 >= 2 extra junk", containers={opt: val})
70
71

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