(self)
| 188 | self.check_file(testfile, self.nframes, self.frames) |
| 189 | |
| 190 | def test_overflowed_write(self): |
| 191 | with open(TESTFN, 'wb') as testfile: |
| 192 | testfile.write(b'ababagalamaga') |
| 193 | f = self.create_file(testfile) |
| 194 | f.setnframes(self.nframes - 1) |
| 195 | f.writeframes(self.frames) |
| 196 | f.close() |
| 197 | |
| 198 | with open(TESTFN, 'rb') as testfile: |
| 199 | self.assertEqual(testfile.read(13), b'ababagalamaga') |
| 200 | self.check_file(testfile, self.nframes, self.frames) |
| 201 | |
| 202 | def test_unseekable_read(self): |
| 203 | with self.create_file(TESTFN) as f: |
nothing calls this directly
no test coverage detected