#NEWLINE# def testStoreFetchEncoding( self ) : #NEWLINE# #INDENT# context = StorageOnlyContext ( ) #NEWLINE# cache = encoder . EncodingDiskCache ( my_encoding ) #NEWLINE# my_encoder = encoder . Encoder ( context , encoder . OptionValueSet ( encoder . OptionSet ( ) , '--parameters' ) ) #NEWLINE# cache . StoreEncoder ( my_encoder ) #NEWLINE# my_encoding = encoder . Encoding ( my_encoder , 123 , encoder . Videofile ( 'x/foo_640_480_20.yuv' ) ) #NEWLINE# testresult = { #NEWLINE# #INDENT# 'foo' : 'bar' , #NEWLINE# #UNINDENT# } #NEWLINE# my_encoding . result = testresult #NEWLINE# cache . StoreEncoding ( my_encoding ) #NEWLINE# my_encoding . result = None #NEWLINE# result = cache . ReadEncodingResult ( my_encoding ) #NEWLINE# self . assertEquals ( result , testresult )