mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
17 lines
500 B
Python
17 lines
500 B
Python
from django.test import override_settings
|
|
from django.urls import reverse
|
|
|
|
from sentry.testutils.cases import TestCase
|
|
from sentry.testutils.silo import control_silo_test
|
|
|
|
|
|
@control_silo_test
|
|
@override_settings(ROOT_URLCONF="sentry.conf.urls")
|
|
class CsrfFailureTest(TestCase):
|
|
def test_simple(self):
|
|
path = reverse("error-403-csrf-failure")
|
|
|
|
resp = self.client.get(path)
|
|
assert resp.status_code == 403
|
|
self.assertTemplateUsed(resp, "sentry/403-csrf-failure.html")
|