def METHOD_NAME(self, sample_email_template, sample_job):
    assert Notification.query.count() == 0
    data_1 = _notification_json(
        sample_email_template, job_id=sample_job.id, status="permanent-failure", feedback_type=NOTIFICATION_HARD_BOUNCE
    )
    data_2 = _notification_json(sample_email_template, job_id=sample_job.id, status="created")
    notification_1 = Notification(**data_1)
    notification_2 = Notification(**data_2)
    dao_create_notification(notification_1)
    dao_create_notification(notification_2)
    assert Notification.query.count() == 2
    result = overall_bounce_rate_for_day(2, datetime.utcnow() + timedelta(minutes=1))
    assert result[0].service_id == sample_email_template.service_id
    assert result[0].total_emails == 2
    assert result[0].hard_bounces == 1
    assert result[0].bounce_rate == 50