def test_send_bounce_keepalive(self):
        fake_service = 'fake_service'
        fake_instance = 'fake_instance'
        fake_cluster = 'fake_cluster'
        fake_soa_dir = ''
        expected_check_name = 'paasta_bounce_progress.%s' % compose_job_id(fake_service, fake_instance)
        with contextlib.nested(
            mock.patch("paasta_tools.monitoring_tools.send_event", autospec=True),
            mock.patch("paasta_tools.marathon_tools.load_marathon_service_config", autospec=True),
        ) as (
            send_event_patch,
            load_marathon_service_config_patch,
        ):
            load_marathon_service_config_patch.return_value.get_monitoring.return_value = {}
            setup_marathon_job.send_sensu_bounce_keepalive(
                service=fake_service,
                instance=fake_instance,
                cluster=fake_cluster,
                soa_dir=fake_soa_dir,
            )
            send_event_patch.assert_called_once_with(
                service=fake_service,
                check_name=expected_check_name,
                overrides=mock.ANY,
                status=0,
                output=mock.ANY,
                soa_dir=fake_soa_dir,
                ttl='1h',
            )
            load_marathon_service_config_patch.assert_called_once_with(
                service=fake_service,
                instance=fake_instance,
                cluster=fake_cluster,
                load_deployments=False,
                soa_dir=fake_soa_dir,
            )
dataset/ETHPy150Open Yelp/paasta/tests/test_setup_marathon_job.py/TestSetupMarathonJob.test_send_bounce_keepalive/original