#NEWLINE# def test_follow( self ) : #NEWLINE# #INDENT# q = QuestionFactory ( ) #NEWLINE# u = UserFactory ( ) #NEWLINE# self . client . force_authenticate ( user = u ) #NEWLINE# res = self . client . post ( reverse ( 'question-follow' , args = [ q . id ] ) ) #NEWLINE# eq_ ( res . status_code , 204 ) #NEWLINE# f = Follow . objects . get ( user = u ) #NEWLINE# eq_ ( f . follow_object , q ) #NEWLINE# eq_ ( f . actor_only , False )