Lines Matching full:frames
79 def check_file(self, testfile, nframes, frames): argument
86 self.assertEqual(f.readframes(nframes), frames)
93 f.writeframes(self.frames)
101 f.writeframes(self.frames)
104 self.check_file(TESTFN, self.nframes, self.frames)
111 f.writeframes(self.frames)
116 self.check_file(testfile, self.nframes, self.frames)
124 f.writeframes(self.frames[:-framesize])
125 f.writeframes(self.frames[-framesize:])
130 self.check_file(testfile, self.nframes, self.frames)
137 f.writeframes(self.frames)
142 self.check_file(testfile, self.nframes, self.frames)
147 f.writeframes(self.frames)
151 self.check_file(testfile, self.nframes, self.frames)
157 f.writeframes(self.frames)
161 self.check_file(TESTFN, self.nframes, self.frames)
169 f.writeframes(self.frames)
179 self.check_file(testfile, self.nframes + 1, self.frames)
187 f.writeframes(self.frames)
198 self.check_file(testfile, self.nframes - 1, self.frames[:-framesize])
229 chunk1 = self.frames[:2 * framesize]
230 chunk2 = self.frames[2 * framesize: 4 * framesize]
282 self.assertEqual(f.readframes(self.nframes), self.frames)