#NEWLINE# def test_helpful_question_not_editable( self ) : #NEWLINE# #INDENT# q = QuestionFactory ( is_locked = True ) #NEWLINE# u = UserFactory ( ) #NEWLINE# self . client . force_authenticate ( user = u ) #NEWLINE# res = self . client . post ( reverse ( 'question-helpful' , args = [ q . id ] ) ) #NEWLINE# eq_ ( res . status_code , 403 ) #NEWLINE# eq_ ( Question . objects . get ( id = q . id ) . num_votes , 0 )