def test_replace_missing_setting():
    policy = build_policy(replace={'img-src': 'example.com'})
    policy_eq("default-src 'self'; img-src example.com", policy)
replace should work even if the setting is not defined.
dataset/ETHPy150Open mozilla/django-csp/csp/tests/test_utils.py/test_replace_missing_setting