

def test_p3p_response_header(self):
    request = self.rf.get('/')
    response = HttpResponse('Example response')
    self.assertEqual(P3PMiddleware().process_response(request, response), response)
    self.assertTrue(response.has_header('P3P'))
    self.assertEqual(response.get('P3P'), 'CP=""')

dataset/ETHPy150Open jjanssen/django-p3p/p3p/tests/test_middleware.py P3PMiddlewareTest.test_p3p_response_header/original