(self)
| 162 | self.check_file(TESTFN, self.nframes, self.frames) |
| 163 | |
| 164 | def test_incompleted_write(self): |
| 165 | with open(TESTFN, 'wb') as testfile: |
| 166 | testfile.write(b'ababagalamaga') |
| 167 | f = self.create_file(testfile) |
| 168 | f.setnframes(self.nframes + 1) |
| 169 | f.writeframes(self.frames) |
| 170 | f.close() |
| 171 | |
| 172 | with open(TESTFN, 'rb') as testfile: |
| 173 | self.assertEqual(testfile.read(13), b'ababagalamaga') |
| 174 | self.check_file(testfile, self.nframes, self.frames) |
| 175 | |
| 176 | def test_multiple_writes(self): |
| 177 | with open(TESTFN, 'wb') as testfile: |
nothing calls this directly
no test coverage detected