#NEWLINE# @ mock_swf #NEWLINE# def test_respond_decision_task_completed_with_task_already_completed( ) : #NEWLINE# #INDENT# conn = setup_workflow ( ) #NEWLINE# resp = conn . poll_for_decision_task ( 'test-domain' , 'queue' ) #NEWLINE# task_token = resp [ 'taskToken' ] #NEWLINE# conn . respond_decision_task_completed ( resp ) #NEWLINE# conn . respond_decision_task_completed . when . called_with ( task_token ) . should . throw ( SWFResponseError )