#NEWLINE# def test_TenBlackFrames( self ) : #NEWLINE# #INDENT# codec = openh264 . OpenH264Codec ( ) #NEWLINE# my_optimizer = optimizer . Optimizer ( codec ) #NEWLINE# videofile = test_tools . MakeYuvFileWithBlankFrames ( 'ten_black_frames_1024_768_30.yuv' , 10 ) #NEWLINE# encoding = my_optimizer . BestEncoding ( 1000 , encoding ) #NEWLINE# encoding . Execute ( ) #NEWLINE# self . assertLess ( 40.0 , my_optimizer . Score ( encoding ) )