

def test_deny_decorator(self):
    '\n        Ensures @xframe_options_deny properly sets the X-Frame-Options header.\n        '

    @xframe_options_deny
    def a_view(request):
        return HttpResponse()
    r = a_view(HttpRequest())
    self.assertEqual(r['X-Frame-Options'], 'DENY')

dataset/ETHPy150Open django/django/tests/decorators/tests.py XFrameOptionsDecoratorsTests.test_deny_decorator/original