Lines Matching full:frames
62 def check_file(self, testfile, nframes, frames): argument
68 self.assertEqual(f.readframes(nframes), frames)
73 f.writeframes(self.frames)
128 f.writeframes(self.frames)
131 self.check_file(TESTFN, self.nframes, self.frames)
136 f.writeframes(bytearray(self.frames))
139 self.check_file(TESTFN, self.nframes, self.frames)
144 f.writeframes(array.array('h', self.frames))
147 self.check_file(TESTFN, self.nframes, self.frames)
152 f.writeframes(memoryview(self.frames))
155 self.check_file(TESTFN, self.nframes, self.frames)
162 f.writeframes(self.frames)
167 self.check_file(testfile, self.nframes, self.frames)
175 f.writeframes(self.frames[:-framesize])
176 f.writeframes(self.frames[-framesize:])
181 self.check_file(testfile, self.nframes, self.frames)
188 f.writeframes(self.frames)
193 self.check_file(testfile, self.nframes, self.frames)
198 f.writeframes(self.frames)
201 self.check_file(testfile, self.nframes, self.frames)
207 f.writeframes(self.frames)
209 self.check_file(TESTFN, self.nframes, self.frames)
217 f.writeframes(self.frames)
227 self.check_file(testfile, self.nframes + 1, self.frames)
235 f.writeframes(self.frames)
246 self.check_file(testfile, self.nframes - 1, self.frames[:-framesize])
277 chunk1 = self.frames[:2 * framesize]
278 chunk2 = self.frames[2 * framesize: 4 * framesize]
329 self.assertEqual(f.readframes(self.nframes), self.frames)