def test_csp_settings_not_overriden_for_prod(self):
        """Checks sites/prod/settings.py doesn't have CSP_* settings.

        Because testing the import of site settings is difficult due to
        env vars, we specify prod settings in lib/base_settings and then
        override them for local-dev/-dev/stage.

        This way the default settings in lib/base_settings should represent
        what is used for prod and thus are more readily testable.

        """
        path = os.path.join(
            settings.ROOT, 'src', 'olympia', 'conf', 'prod', 'settings.py')

        with open(path) as f:
            data = f.read()
            assert 'CSP_' not in data
dataset/ETHPy150Open mozilla/addons-server/src/olympia/amo/tests/test_csp_headers.py/TestCSPHeaders.test_csp_settings_not_overriden_for_prod/original