def test_middleware_classes_headers(self):
        from django.conf.project_template.project_name.settings import MIDDLEWARE_CLASSES

        with self.settings(
            MIDDLEWARE_CLASSES=MIDDLEWARE_CLASSES,
            ROOT_URLCONF='project_template.urls',
        ):
            response = self.client.get('/empty/')
            headers = sorted(response.serialize_headers().split(b'\r\n'))
            self.assertEqual(headers, [
                b'Content-Type: text/html; charset=utf-8',
                b'X-Frame-Options: SAMEORIGIN',
            ])
Ensure headers sent by the default MIDDLEWARE_CLASSES do not
dataset/ETHPy150Open django/django/tests/project_template/test_settings.py/TestStartProjectSettings.test_middleware_classes_headers