@@ -0,0 +1,1067 @@
+# -*- coding: utf-8 -*-%0A##%0A#    Copyright (C) 2015 Jessica Tallon & Matt Molyneaux%0A#%0A#    This file is part of Inboxen.%0A#%0A#    Inboxen is free software: you can redistribute it and/or modify%0A#    it under the terms of the GNU Affero General Public License as published by%0A#    the Free Software Foundation, either version 3 of the License, or%0A#    (at your option) any later version.%0A#%0A#    Inboxen is distributed in the hope that it will be useful,%0A#    but WITHOUT ANY WARRANTY; without even the implied warranty of%0A#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%0A#    GNU Affero General Public License for more details.%0A#%0A#    You should have received a copy of the GNU Affero General Public License%0A#    along with Inboxen.  If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A##%0A%0Afrom django import test%0Afrom django.core.urlresolvers import reverse%0A%0A%0Aclass CSPTestCase(test.TestCase):%0A    def test_csp_report_view(self):%0A        url = reverse(%22csp_logger%22)%0A        response = self.client.post(url)%0A%0A        self.assertEqual(response.status_code, 200)%0A

Test CSP logging view returns a 200