#NEWLINE# def check_params( self , f , nchannels , sampwidth , framerate , nframes , comptype , compname ) : #NEWLINE# #INDENT# self . assertEqual ( f . getnchannels ( ) , nchannels ) #NEWLINE# self . assertEqual ( f . getsampwidth ( ) , sampwidth ) #NEWLINE# self . assertEqual ( f . getframerate ( ) , framerate ) #NEWLINE# self . assertEqual ( f . getnframes ( ) , nframes ) #NEWLINE# self . assertEqual ( f . getcomptype ( ) , comptype ) #NEWLINE# self . assertEqual ( f . getcompname ( ) , compname ) #NEWLINE# params = f . getparams ( ) #NEWLINE# self . assertEqual ( params , ( nchannels , sampwidth , framerate , nframes , comptype , compname ) ) #NEWLINE# dump = pickle . dumps ( params ) #NEWLINE# self . assertEqual ( pickle . loads ( dump ) , params )