• Home
  • Raw
  • Download

Lines Matching refs:assertRaises

140         with self.assertRaises(aifc.Error):
165 self.assertRaises(aifc.Error, f.getmark, 3)
193 self.assertRaises(EOFError, aifc._read_ulong, f)
194 self.assertRaises(EOFError, aifc._read_long, f)
195 self.assertRaises(EOFError, aifc._read_ushort, f)
196 self.assertRaises(EOFError, aifc._read_short, f)
200 with self.assertRaises(ValueError):
204 with self.assertRaises(aifc.Error):
210 self.assertRaises(aifc.Error, aifc.open, b1)
211 self.assertRaises(aifc.Error, aifc.open, b2)
215 self.assertRaises(aifc.Error, aifc.open, b)
229 self.assertRaises(aifc.Error, aifc.open, io.BytesIO(b))
265 self.assertRaises(aifc.Error, fout.setparams, wrong_params)
266 self.assertRaises(aifc.Error, fout.getparams)
267 self.assertRaises(aifc.Error, fout.setnchannels, 0)
268 self.assertRaises(aifc.Error, fout.getnchannels)
269 self.assertRaises(aifc.Error, fout.setsampwidth, 0)
270 self.assertRaises(aifc.Error, fout.getsampwidth)
271 self.assertRaises(aifc.Error, fout.setframerate, 0)
272 self.assertRaises(aifc.Error, fout.getframerate)
273 self.assertRaises(aifc.Error, fout.setcomptype, 'WRNG', '')
280 self.assertRaises(aifc.Error, fout.setparams, (1, 1, 1, 1, 1, 1))
281 self.assertRaises(aifc.Error, fout.setnchannels, 1)
282 self.assertRaises(aifc.Error, fout.setsampwidth, 1)
283 self.assertRaises(aifc.Error, fout.setframerate, 1)
284 self.assertRaises(aifc.Error, fout.setnframes, 1)
285 self.assertRaises(aifc.Error, fout.setcomptype, 'NONE', '')
286 self.assertRaises(aifc.Error, fout.aiff)
287 self.assertRaises(aifc.Error, fout.aifc)
318 self.assertRaises(aifc.Error, fout.close)
321 self.assertRaises(aifc.Error, fout.close)
325 self.assertRaises(aifc.Error, fout.close)
332 self.assertRaises(aifc.Error, fout.close)
337 self.assertRaises(aifc.Error, fout.setmark, 0, 0, '')
338 self.assertRaises(aifc.Error, fout.setmark, 1, -1, '')
339 self.assertRaises(aifc.Error, fout.setmark, 1, 0, None)
340 self.assertRaises(aifc.Error, fout.getmark, 1)