#NEWLINE# def test_cron_updates_counts( self ) : #NEWLINE# #INDENT# q = QuestionFactory ( ) #NEWLINE# eq_ ( 0 , q . num_votes_past_week ) #NEWLINE# QuestionVoteFactory ( question = self , anonymous_id = 'abc123' ) #NEWLINE# q . num_votes_past_week = 0 #NEWLINE# q . save ( ) #NEWLINE# update_weekly_votes ( ) #NEWLINE# q = Question . objects . get ( pk = q . pk ) #NEWLINE# eq_ ( 1 , q . num_votes_past_week )