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