'Ensures @xframe_options_sameorigin properly sets the X-Frame-Options
header.'

def test_sameorigin_decorator(self):

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