#NEWLINE# def mock_request( self ) : #NEWLINE# #INDENT# request = testing . DummyRequest ( ) #NEWLINE# request . feature = mock . Mock ( return_value = False , spec = ( lambda flag : False ) ) #NEWLINE# return request