#NEWLINE# def test_should_not_minify_not_html_content( self ) : #NEWLINE# #INDENT# response_mock = ResponseMock ( ) #NEWLINE# response_mock [ 'Content-Type' ] = 'application/json' #NEWLINE# response = HtmlMinifyMiddleware ( ) . process_response ( RequestMock ( ) , response_mock ) #NEWLINE# html_not_minified = '<html>   <body>some text here</body>    </html>' #NEWLINE# self . assertEqual ( html_not_minified , response . content )