

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

dataset/ETHPy150Open jazzband/django-pipeline/tests/tests/test_middleware.py MiddlewareTest.test_middleware_html/VarMisuse@10/15 `self`->`response`