<s> """<STR_LIT>""" <EOL> import optimizer <EOL> import unittest <EOL> import test_tools <EOL> import x265 <EOL> class TestX265 ( test_tools . FileUsingCodecTest ) : <EOL> def test_Init ( self ) : <EOL> codec = x265 . X265Codec ( ) <EOL> self . assertEqual ( codec . name , '<STR_LIT>' ) <EOL> def test_OneBlackFrame ( self ) : <EOL> codec = x265 . X265Codec ( ) <EOL> my_optimizer = optimizer . Optimizer ( codec ) <EOL> videofile = test_tools . MakeYuvFileWithOneBlankFrame ( <EOL> '<STR_LIT>' ) <EOL> encoding = my_optimizer . BestEncoding ( <NUM_LIT:1000> , videofile ) <EOL> encoding . Execute ( ) <EOL> self . assertLess ( <NUM_LIT> , my_optimizer . Score ( encoding ) ) <EOL> def test_TenBlackFrames ( self ) : <EOL> codec = x265 . X265Codec ( ) <EOL> my_optimizer = optimizer . Optimizer ( codec ) <EOL> videofile = test_tools . MakeYuvFileWithBlankFrames ( <EOL> '<STR_LIT>' , <NUM_LIT:10> ) <EOL> encoding = my_optimizer . BestEncoding ( <NUM_LIT:1000> , videofile ) <EOL> encoding . Execute ( ) <EOL> self . assertLess ( <NUM_LIT> , my_optimizer . Score ( encoding ) ) <EOL> def test_EncoderVersion ( self ) : <EOL> codec = x265 . X265Codec ( ) <EOL> self . assertRegexpMatches ( codec . EncoderVersion ( ) , r'<STR_LIT>' ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
