(self, testfile)
| 55 | readonly = False |
| 56 | |
| 57 | def create_file(self, testfile): |
| 58 | if self.readonly: |
| 59 | self.skipTest('Read only file format') |
| 60 | f = self.fout = self.module.open(testfile, 'wb') |
| 61 | f.setnchannels(self.nchannels) |
| 62 | f.setsampwidth(self.sampwidth) |
| 63 | f.setframerate(self.framerate) |
| 64 | f.setcomptype(self.comptype, self.compname) |
| 65 | f.setformat(self.format) |
| 66 | return f |
| 67 | |
| 68 | def check_file(self, testfile, nframes, frames): |
| 69 | with self.module.open(testfile, 'rb') as f: |
no test coverage detected