#NEWLINE# def test_get_total_activity_count( self ) : #NEWLINE# #INDENT# user = UserFactory ( ) #NEWLINE# date = datetime . utcnow ( ) #NEWLINE# assert_equal ( analytics . get_total_activity_count ( self . _id ) , 0 ) #NEWLINE# assert_equal ( analytics . get_total_activity_count ( user . _id ) , user . get_activity_points ( db = self . db ) ) #NEWLINE# analytics . increment_user_activity_counters ( user . _id , 'project_created' , date , db = self . db ) #NEWLINE# assert_equal ( analytics . get_total_activity_count ( user . _id , db = self . db ) , 1 ) #NEWLINE# assert_equal ( analytics . get_total_activity_count ( user . _id , db = self . db ) , user . get_activity_points ( db = self . db ) )