Lines Matching refs:assertRaises
158 with self.assertRaises(aifc.Error):
167 with self.assertRaises(RuntimeError):
218 self.assertRaises(aifc.Error, f.getmark, 3)
246 self.assertRaises(EOFError, aifc._read_ulong, f)
247 self.assertRaises(EOFError, aifc._read_long, f)
248 self.assertRaises(EOFError, aifc._read_ushort, f)
249 self.assertRaises(EOFError, aifc._read_short, f)
253 with self.assertRaises(ValueError):
257 with self.assertRaises(aifc.Error):
263 self.assertRaises(aifc.Error, aifc.open, b1)
264 self.assertRaises(aifc.Error, aifc.open, b2)
268 self.assertRaises(aifc.Error, aifc.open, b)
284 self.assertRaises(aifc.Error, aifc.open, io.BytesIO(b))
343 self.assertRaises(aifc.Error, fout.setparams, wrong_params)
344 self.assertRaises(aifc.Error, fout.getparams)
345 self.assertRaises(aifc.Error, fout.setnchannels, 0)
346 self.assertRaises(aifc.Error, fout.getnchannels)
347 self.assertRaises(aifc.Error, fout.setsampwidth, 0)
348 self.assertRaises(aifc.Error, fout.getsampwidth)
349 self.assertRaises(aifc.Error, fout.setframerate, 0)
350 self.assertRaises(aifc.Error, fout.getframerate)
351 self.assertRaises(aifc.Error, fout.setcomptype, b'WRNG', '')
358 self.assertRaises(aifc.Error, fout.setparams, (1, 1, 1, 1, 1, 1))
359 self.assertRaises(aifc.Error, fout.setnchannels, 1)
360 self.assertRaises(aifc.Error, fout.setsampwidth, 1)
361 self.assertRaises(aifc.Error, fout.setframerate, 1)
362 self.assertRaises(aifc.Error, fout.setnframes, 1)
363 self.assertRaises(aifc.Error, fout.setcomptype, b'NONE', '')
364 self.assertRaises(aifc.Error, fout.aiff)
365 self.assertRaises(aifc.Error, fout.aifc)
396 self.assertRaises(aifc.Error, fout.close)
399 self.assertRaises(aifc.Error, fout.close)
403 self.assertRaises(aifc.Error, fout.close)
410 self.assertRaises(aifc.Error, fout.close)
415 self.assertRaises(aifc.Error, fout.setmark, 0, 0, b'')
416 self.assertRaises(aifc.Error, fout.setmark, 1, -1, b'')
417 self.assertRaises(aifc.Error, fout.setmark, 1, 0, None)
418 self.assertRaises(aifc.Error, fout.getmark, 1)