MCPcopy
hub / github.com/django/django / _check_referer_rejects

Method _check_referer_rejects

tests/csrf_tests/tests.py:645–647  ·  view source on GitHub ↗
(self, mw, req)

Source from the content-addressed store, hash-verified

643 )
644
645 def _check_referer_rejects(self, mw, req):
646 with self.assertRaises(RejectRequest):
647 mw._check_referer(req)
648
649 @override_settings(DEBUG=True)
650 def test_https_no_referer(self):

Calls 1

_check_refererMethod · 0.80

Tested by

no test coverage detected