<s> """<STR_LIT>""" <EOL> import encoder <EOL> import optimizer <EOL> import unittest <EOL> import test_tools <EOL> import x264_baseline <EOL> class TestX264Baseline ( test_tools . FileUsingCodecTest ) : <EOL> def test_Init ( self ) : <EOL> codec = x264_baseline . X264BaselineCodec ( ) <EOL> self . assertEqual ( codec . name , '<STR_LIT>' ) <EOL> def test_OneBlackFrame ( self ) : <EOL> codec = x264_baseline . X264BaselineCodec ( ) <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_HasBaselineFlag ( self ) : <EOL> codec = x264_baseline . X264BaselineCodec ( ) <EOL> context = encoder . Context ( codec ) <EOL> my_encoder = codec . StartEncoder ( context ) <EOL> videofile = test_tools . MakeYuvFileWithOneBlankFrame ( <EOL> '<STR_LIT>' ) <EOL> encoding = my_encoder . Encoding ( <NUM_LIT:1000> , videofile ) <EOL> commandline = encoding . EncodeCommandLine ( ) <EOL> self . assertRegexpMatches ( commandline , '<STR_LIT>' ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
