Lines Matching refs:_fp
24 self._fp = self.MODULE.StringIO(self._lines)
28 self.assertRaises(TypeError, self._fp.seek)
29 eq(self._fp.read(10), self._line[:10])
30 eq(self._fp.read(0), '')
31 eq(self._fp.readline(0), '')
32 eq(self._fp.readline(), self._line[10:] + '\n')
33 eq(len(self._fp.readlines(60)), 2)
34 self._fp.seek(0)
35 eq(self._fp.readline(-1), self._line + '\n')
94 eq(iter(self._fp), self._fp)
96 unless(hasattr(self._fp, '__iter__'))
97 unless(hasattr(self._fp, 'next'))
99 for line in self._fp:
103 self._fp.close()
104 self.assertRaises(ValueError, self._fp.next)
107 self._fp.close()
108 self.assertRaises(ValueError, self._fp.getvalue)