Lines Matching refs:readline
63 def readline(self, size=None): member in LineReader
72 line = self.readline()
117 s = fi.readline()
127 self.assertEqual(fi.readline(), 'Line 1 of file 3\n')
191 line = fi.readline()
197 line = fi.readline()
293 fi.readline()
308 self.assertEqual(fi.readline(), 'A\n')
309 self.assertEqual(fi.readline(), 'B\n')
310 self.assertEqual(fi.readline(), 'C\n')
316 self.assertEqual(fi.readline(), '')
317 self.assertEqual(fi.readline(), '')
325 self.assertEqual(fi.readline(), b'A\n')
326 self.assertEqual(fi.readline(), b'B\r\n')
327 self.assertEqual(fi.readline(), b'C\rD')
329 self.assertEqual(fi.readline(), b'')
330 self.assertEqual(fi.readline(), b'')
413 fi.readline()
432 fi.readline()
468 self.assertEqual(fi.readline(), 'line1\n')
470 self.assertEqual(fi.readline(), 'line2')
472 self.assertEqual(fi.readline(), 'line3\n')
474 self.assertEqual(fi.readline(), '')
476 self.assertEqual(fi.readline(), '')
498 line = fi.readline()
507 line = fi.readline()