#NEWLINE# @ retrying . retry ( wait_fixed = 3000 , stop_max_delay = 900000 ) #NEWLINE# def _wait_for_state( self , execution , states ) : #NEWLINE# #INDENT# execution = self . st2client . liveactions . get_by_id ( execution . id ) #NEWLINE# self . assertIn ( execution . status , states ) #NEWLINE# return execution