#NEWLINE# def assertTaskEvents( self , * states ) : #NEWLINE# #INDENT# for ( status , task ) in states : #NEWLINE# #INDENT# event_data = next ( states . events ) #NEWLINE# self . assertEqual ( event_data [ 'status' ] , status ) #NEWLINE# self . assertEqual ( event_data [ 'id' ] , task . task_id )