#NEWLINE# def test_get_ticket_fields_milestone_update_due( self ) : #NEWLINE# #INDENT# 'Cached ticket fields are updated when milestone due date is\n        changed.\n        ' #NEWLINE# fields = self . ticket_system . get_ticket_fields ( ) #NEWLINE# milestone_field = self . _get_ticket_field ( 'milestone' ) #NEWLINE# m2 = Milestone ( self . env , 'milestone2' ) #NEWLINE# m2 . due = datetime_now ( utc ) #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 , updated_fields ) #NEWLINE# self . assertEqual ( [ 'milestone1' , 'milestone2' , 'milestone3' , 'milestone4' ] , milestone_field [ 'options' ] ) #NEWLINE# self . assertEqual ( [ 'milestone2' , 'milestone1' , 'milestone3' , 'milestone4' ] , updated_milestone_field [ 'options' ] )