#NEWLINE# def test_unfollow( self ) : #NEWLINE# #INDENT# q = QuestionFactory ( ) #NEWLINE# u = UserFactory ( ) #NEWLINE# actstream . actions . follow ( q , q , actor_only = False ) #NEWLINE# eq_ ( Follow . objects . filter ( user = u ) . count ( ) , 1 ) #NEWLINE# self . client . force_authenticate ( user = u ) #NEWLINE# res = self . client . post ( reverse ( 'question-unfollow' , args = [ q . id ] ) ) #NEWLINE# eq_ ( res . status_code , 204 ) #NEWLINE# eq_ ( Follow . objects . filter ( user = u ) . count ( ) , 0 )