def METHOD_NAME(self):
    """Check for anaytics hosts in img-src and script-src"""
    analytics_host = base_settings.ANALYTICS_HOST
    assert analytics_host in base_settings.CSP_CONNECT_SRC
    # See https://github.com/mozilla/addons-server/issues/14427
    assert analytics_host not in base_settings.CSP_IMG_SRC
    assert (
        'https://www.google-analytics.com/analytics.js'
        in base_settings.CSP_SCRIPT_SRC
    )