#NEWLINE# def test_request_discarded( self ) : #NEWLINE# #INDENT# 'Ensure submission is turned inactive after being discarded.' #NEWLINE# self . assertEqual ( self . submission . active , True ) #NEWLINE# rv = self . client . get ( reverse ( 'eventsubmission_discard' , args = [ self . submission . pk ] ) , follow = True ) #NEWLINE# self . assertEqual ( rv . status_code , 200 ) #NEWLINE# self . submission . refresh_from_db ( ) #NEWLINE# self . assertEqual ( self . submission . active , False )