def testSizeAndPos(self):
     """Test that the length and end position of each event matches
     what is expected.
     """
     for fname in self.filenames:
         istream = open(fname)
         current_pos = 4
         for event in parser.read_events(istream):
             self.assertEqual(event.start_pos, current_pos)
             current_pos = event.end_pos
 def testSizeAndPos(self):
     """Test that the length and end position of each event matches
     what is expected.
     """
     for fname in self.filenames:
         istream = open(fname)
         current_pos = 4
         for event in parser.read_events(istream):
             self.assertEqual(event.start_pos, current_pos)
             current_pos = event.end_pos
 def testEventTypes(self):
     for fname in self.filenames:
         istream = open(fname)
         for event in parser.read_events(istream):
             pass
 def testEventTypes(self):
     for fname in self.filenames:
         istream = open(fname)
         for event in parser.read_events(istream):
             pass