def METHOD_NAME(self, datadog, app_spec, deployment, best_effort_required):
    datadog_spec = app_spec.datadog._replace(enabled=True, tags={})
    app_spec = app_spec._replace(datadog=datadog_spec)
    datadog.apply(deployment, app_spec, best_effort_required, 0)
    expected = [
        {"name": "DUMMY", "value": "CANARY"},
        {"name": "STATSD_HOST", "value": "localhost"},
        {"name": "STATSD_PORT", "value": "8125"},
    ]
    assert expected == deployment.as_dict()["spec"]["template"]["spec"]["containers"][0]["env"]