#NEWLINE# def test_request_accepted( self ) : #NEWLINE# #INDENT# 'Ensure submission is turned inactive after acceptance.' #NEWLINE# self . assertEqual ( self . submission . active , True ) #NEWLINE# minimal_event = { #NEWLINE# #INDENT# 'host' : Host . objects . first ( ) . pk , #NEWLINE# 'tags' : [ Tag . objects . first ( ) . pk ] , #NEWLINE# 'invoice_status' : 'not-invoiced' , #NEWLINE# #UNINDENT# } #NEWLINE# rv = self . client . post ( reverse ( 'eventsubmission_accept' , args = [ self . submission . pk ] ) , minimal_event , follow = True ) #NEWLINE# self . assertEqual ( minimal_event . status_code , 200 ) #NEWLINE# self . submission . refresh_from_db ( ) #NEWLINE# self . assertEqual ( self . submission . active , False )