(self)
| 323 | fout.readframes(fout.getnframes())) |
| 324 | |
| 325 | def test_read_not_from_start(self): |
| 326 | with open(TESTFN, 'wb') as testfile: |
| 327 | testfile.write(b'ababagalamaga') |
| 328 | with open(self.sndfilepath, 'rb') as f: |
| 329 | testfile.write(f.read()) |
| 330 | |
| 331 | with open(TESTFN, 'rb') as testfile: |
| 332 | self.assertEqual(testfile.read(13), b'ababagalamaga') |
| 333 | with self.module.open(testfile, 'rb') as f: |
| 334 | self.assertEqual(f.getnchannels(), self.nchannels) |
| 335 | self.assertEqual(f.getsampwidth(), self.sampwidth) |
| 336 | self.assertEqual(f.getframerate(), self.framerate) |
| 337 | self.assertEqual(f.getnframes(), self.sndfilenframes) |
| 338 | self.assertEqual(f.readframes(self.nframes), self.frames) |
nothing calls this directly
no test coverage detected