#NEWLINE# def test_get_ticket_fields_milestone_rename( self ) : #NEWLINE# #INDENT# 'Cached ticket fields are updated when milestone is renamed.' #NEWLINE# fields = self . ticket_system . get_ticket_fields ( ) #NEWLINE# milestone_field = self . _get_ticket_field ( 'milestone' ) #NEWLINE# m2 = Milestone ( self . env , 'milestone2' ) #NEWLINE# m2 . name = 'milestone5' #NEWLINE# m2 . update ( ) #NEWLINE# updated_fields = self . ticket_system . get_ticket_fields ( ) #NEWLINE# updated_milestone_field = self . _get_ticket_field ( 'milestone' ) #NEWLINE# self . assertNotEqual ( fields , milestone_field ) #NEWLINE# self . assertEqual ( [ 'milestone1' , 'milestone2' , 'milestone3' , 'milestone4' ] , milestone_field [ 'options' ] ) #NEWLINE# self . assertEqual ( [ 'milestone1' , 'milestone3' , 'milestone4' , 'milestone5' ] , updated_milestone_field [ 'options' ] )