#NEWLINE# def testInitFromFile( self ) : #NEWLINE# #INDENT# context = encoder . Context ( DummyCodec ( ) ) #NEWLINE# my_encoder = encoder . Encoder ( context , encoder . OptionValueSet ( encoder . OptionSet ( ) , '--parameters' ) ) #NEWLINE# my_encoder . Store ( ) #NEWLINE# new_encoder = encoder . Encoder ( context , filename = my_encoder . Hashname ( ) ) #NEWLINE# self . assertEquals ( new_encoder . parameters , new_encoder . parameters )