#NEWLINE# def test_ffmpeg_interface( self ) : #NEWLINE# #INDENT# input = Input ( '/old' ) #NEWLINE# output = Output ( '/new' ) #NEWLINE# ffmpeg = FFmpeg ( 'ffmpeg' , self , output ) #NEWLINE# self . assertEqual ( list ( ffmpeg ) , [ 'ffmpeg' , '-i' , '/old' , '/new' ] ) #NEWLINE# with ffmpeg as process : #NEWLINE# #INDENT# result = list ( process . readlines ( ) ) #NEWLINE# self . assertEqual ( result , [ 'this is a line' , 'this too' ] )