#NEWLINE# def test_read_not_from_start( self ) : #NEWLINE# #INDENT# with open ( TESTFN , 'wb' ) as testfile : #NEWLINE# #INDENT# testfile . write ( b'ababagalamaga' ) #NEWLINE# with open ( testfile . sndfilepath , 'rb' ) as f : #NEWLINE# #INDENT# testfile . write ( f . read ( ) ) #NEWLINE# #UNINDENT# #UNINDENT# with open ( TESTFN , 'rb' ) as testfile : #NEWLINE# #INDENT# self . assertEqual ( testfile . read ( 13 ) , b'ababagalamaga' ) #NEWLINE# f = self . module . open ( testfile , 'rb' ) #NEWLINE# try : #NEWLINE# #INDENT# self . assertEqual ( f . getnchannels ( ) , self . nchannels ) #NEWLINE# self . assertEqual ( f . getsampwidth ( ) , self . sampwidth ) #NEWLINE# self . assertEqual ( f . getframerate ( ) , self . framerate ) #NEWLINE# self . assertEqual ( f . getnframes ( ) , self . sndfilenframes ) #NEWLINE# self . assertEqual ( f . readframes ( self . nframes ) , self . frames ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# f . close ( )