示例#1
0
    def test_csp_view(self):

        req = ContentSecurityPolicyTests.FakeHttpRequest()

        # call the view
        resp = csp_report(req)

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

        req = ContentSecurityPolicyTests.FakeHttpRequest()

        # call the view
        resp = csp_report(req)

        self.assertEqual(resp.status_code, 204)