#NEWLINE# def test_incident_acknowledge( self ) : #NEWLINE# #INDENT# self . inject_incident ( ) #NEWLINE# try : #NEWLINE# #INDENT# client = APIClient ( ) #NEWLINE# response = client . post ( '/api/create_event' , data = { #NEWLINE# #INDENT# 'incident_key' : 'testing' , #NEWLINE# 'service_key' : response . token . key , #NEWLINE# 'event_type' : 'acknowledge' , #NEWLINE# 'description' : 'test' , #NEWLINE# 'details' : 'test' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( 201 , response . status_code ) #NEWLINE# updated = Incident . objects . get ( incident_key = 'testing' ) #NEWLINE# self . assertEqual ( Incident . ACKNOWLEDGE , updated . event_type ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# updated . delete ( )