

def test_middleware_text(self):
    self.resp['Content-Type'] = 'text/plain; charset=UTF-8'
    response = MinifyHTMLMiddleware().process_response(self.req, self.resp)
    self.assertIn('text/plain', response['Content-Type'])
    self.assertIn(self.whitespace, response.content)

dataset/ETHPy150Open jazzband/django-pipeline/tests/tests/test_middleware.py MiddlewareTest.test_middleware_text/original