#NEWLINE# def test_should_minify_response_with_minify_response_true( self ) : #NEWLINE# #INDENT# minified = '<html><head></head><body>some text here</body></html>' #NEWLINE# response_mock = ResponseMock ( ) #NEWLINE# response_mock . minify_response = True #NEWLINE# response = HtmlMinifyMiddleware ( ) . process_response ( RequestMock ( ) , response_mock ) #NEWLINE# self . assertEqual ( minified , response . content )