#NEWLINE# def test_should_set_flag_when_request_hits_middleware( self ) : #NEWLINE# #INDENT# request_mock = RequestBareMock ( ) #NEWLINE# MarkRequestMiddleware ( ) . process_request ( self ) #NEWLINE# self . assertTrue ( request_mock . _hit_htmlmin )