<s> """<STR_LIT>""" <EOL> import encoder <EOL> import optimizer <EOL> import unittest <EOL> import test_tools <EOL> import vp8_mpeg <EOL> class TestVp8Mpeg ( test_tools . FileUsingCodecTest ) : <EOL> def test_OneBlackFrame ( self ) : <EOL> codec = vp8_mpeg . Vp8CodecMpegMode ( ) <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_ConfigurationFixups ( self ) : <EOL> codec = vp8_mpeg . Vp8CodecMpegMode ( ) <EOL> fixups = codec . ConfigurationFixups ( <EOL> encoder . OptionValueSet ( codec . option_set , <EOL> '<STR_LIT>' ) ) <EOL> self . assertEqual ( '<STR_LIT>' , fixups . ToString ( ) ) <EOL> def test_SuggestedTweakRefersToSameContext ( self ) : <EOL> codec = vp8_mpeg . Vp8CodecMpegMode ( ) <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 . result = { '<STR_LIT>' : <NUM_LIT> , '<STR_LIT>' : <NUM_LIT:1000> } <EOL> next_encoding = codec . SuggestTweak ( encoding ) <EOL> self . assertEqual ( encoding . context , next_encoding . context ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
