class EventsTFileTestCase(unittest.TestCase): def setUp(self): self.fname = create_tree() rootfile = TFile(self.fname) self.events = Events(testfname, 'test_tree') def test(self): event = self.events.to(2) for iev, ev in enumerate(self.events): self.assertEqual(iev, ev.var1)
def setUp(self): self.fname = create_tree() rootfile = TFile(self.fname) self.events = Events(testfname, 'test_tree')
def test(self): events = Events(testfname, 'test_tree') event = events.to(2) for iev, ev in enumerate(events): self.assertEqual(iev, ev.var1)