def METHOD_NAME(self, size):
    linesize = 2**26 # 64 MiB
    lines = ['x' * (linesize - 1) + '\n'] * (size // linesize) + \
            ['y' * (size % linesize)]
    f = self.MODULE.StringIO(''.join(lines))
    for i, expected in enumerate(lines):
        line = f.read(len(expected))
        self.assertEqual(len(line), len(expected))
        self.assertEqual(line, expected)
    self.assertEqual(f.read(), '')
    f.seek(0)
    for i, expected in enumerate(lines):
        line = f.readline()
        self.assertEqual(len(line), len(expected))
        self.assertEqual(line, expected)
    self.assertEqual(f.readline(), '')
    f.seek(0)
    self.assertEqual(f.readlines(), lines)
    self.assertEqual(f.readlines(), [])
    f.seek(0)
    self.assertEqual(f.readlines(size), lines)
    self.assertEqual(f.readlines(), [])