def test_base(self): past_day = get_date(-8) user = UserFactory.create(groups=['Rep']) NGReportFactory.create(user=user, report_date=past_day) user.userprofile.current_streak_start = past_day user.userprofile.save() zero_current_streak() user = User.objects.get(pk=user.id) ok_(not user.userprofile.current_streak_start)