HPS-MC
test_tools_stdhepcount.py
Go to the documentation of this file.
1
import
unittest
2
3
from
hpsmc.tools
import
StdHepCount
4
5
6
class
TestStdHepCount
(unittest.TestCase):
7
8
def
test_init
(self):
9
stdhep_count =
StdHepCount
()
10
self.assertEqual(stdhep_count.name,
"stdhep_count"
)
11
self.assertEqual(stdhep_count.command,
"stdhep_count.sh"
)
12
13
def
test_cmd_args
(self):
14
stdhep_count =
StdHepCount
(inputs=[
"input1.stdhep"
,
"input2.stdhep"
], outputs=[
"some/path/to/output.txt"
])
15
self.assertEqual(stdhep_count.cmd_args(), [
"input1.stdhep"
])
16
17
18
if
__name__ ==
'__main__'
:
19
unittest.main()
hpsmc.tools.StdHepCount
Count number of events in a StdHep file.
Definition:
tools.py:878
test.test_tools_stdhepcount.TestStdHepCount
Definition:
test_tools_stdhepcount.py:6
test.test_tools_stdhepcount.TestStdHepCount.test_cmd_args
def test_cmd_args(self)
Definition:
test_tools_stdhepcount.py:13
test.test_tools_stdhepcount.TestStdHepCount.test_init
def test_init(self)
Definition:
test_tools_stdhepcount.py:8
hpsmc.tools
Tools that can be used in HPSMC jobs.
Definition:
tools.py:1
python
test
test_tools_stdhepcount.py
Generated by
1.9.1