#NEWLINE# def test_ChangeValue( self ) : #NEWLINE# #INDENT# opts = encoder . OptionSet ( encoder . ChoiceOption ( [ 'foo' , 'bar' ] ) ) #NEWLINE# valueset = encoder . OptionValueSet ( self , '--foo' ) #NEWLINE# newset = valueset . ChangeValue ( 'foo/bar' , 'bar' ) #NEWLINE# self . assertEqual ( '--bar' , newset . ToString ( ) ) #NEWLINE# self . assertEqual ( '--foo' , valueset . ToString ( ) )