Example #1
0
    def test_csp_view(self):

        req = ContentSecurityPolicyTests.FakeHttpRequest()

        # call the view
        resp = csp_report(req)

        self.assertEqual(resp.status_code, 204)
Example #2
0
    def test_csp_view(self):

        req = ContentSecurityPolicyTests.FakeHttpRequest()

        # call the view
        resp = csp_report(req)

        self.assertEqual(resp.status_code, 204)