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()
Count number of events in a StdHep file.
Definition: tools.py:878
Tools that can be used in HPSMC jobs.
Definition: tools.py:1