#NEWLINE# def checkFrames( self , observedFrames , expectedFrames ) : #NEWLINE# #INDENT# for ( observed , expected ) in zip ( observedFrames , expectedFrames ) : #NEWLINE# #INDENT# self . assertEqual ( observed [ 0 ] , expected [ 0 ] ) #NEWLINE# observedSegs = os . path . splitext ( observed [ 1 ] ) [ 0 ] . split ( os . sep ) #NEWLINE# expectedSegs = expected [ 1 ] . split ( '/' ) #NEWLINE# self . assertEqual ( observedSegs [ ( - len ( expectedSegs ) ) : ] , expectedSegs ) #NEWLINE# #UNINDENT# self . assertEqual ( len ( expectedSegs ) , len ( expectedFrames ) )