~m-a-uchida/maus/RKdEdxDevel

« back to all changes in this revision

Viewing changes to src/input/InputCppDAQData/test_InputCppDAQData.py

  • Committer: Durga Rajaram
  • Date: 2014-01-14 07:07:02 UTC
  • mfrom: (659.1.80 relcand)
  • Revision ID: durga@fnal.gov-20140114070702-2l1fuj1w6rraw7xe
Tags: MAUS-v0.7.6
MAUS-v0.7.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
        self._c = Configuration()
40
40
    def test_init(self):
41
41
        """Check birth with default configuration"""
42
 
        self._mapper = InputCppDAQData(self._datapath, \
43
 
                                       self._datafile)
 
42
        self._mapper = InputCppDAQData()
44
43
        self.assertTrue(self._mapper.birth( self._c.getConfigJSON() ))
45
 
        # Check re-init without closing fails
46
 
        self.assertFalse(self._mapper.birth( self._c.getConfigJSON() ))
47
44
        self.assertTrue(self._mapper.death())
48
45
        return
49
46
 
50
 
    def test_single(self):
51
 
        """Test a single event"""
52
 
        self._mapper = InputCppDAQData(self._datapath, \
53
 
                                       self._datafile)
54
 
        self.assertTrue(self._mapper.birth(self. _c.getConfigJSON() ))
55
 
        # Get a single event and check it's the right size
56
 
        self.assertFalse(self._mapper.readNextEvent())
57
 
        return
58
 
 
59
47
    @classmethod
60
48
    def tearDownClass(self): # pylint: disable = C0103,C0202
61
49
        """Check that we can death() MapCppTOFDigits"""