#NEWLINE# def test_Changevalue( self ) : #NEWLINE# #INDENT# config = encoder . OptionValueSet ( encoder . OptionSet ( encoder . Option ( 'foo' , [ 'foo' , 'bar' ] ) ) , '--foo=foo' ) #NEWLINE# context = encoder . Context ( DummyCodec ( ) ) #NEWLINE# my_encoder = encoder . Encoder ( context , config ) #NEWLINE# next_encoder = my_encoder . ChangeValue ( 'foo' , 'bar' ) #NEWLINE# self . assertEquals ( next_encoder . parameters , '--foo=bar' )