#NEWLINE# @ mock . patch ( 'oslo_log.versionutils.report_deprecated_feature' ) #NEWLINE# def test_deprecating_a_function_returns_correct_value( self , mock_reporter ) : #NEWLINE# #INDENT# @ versionutils . deprecated ( as_of = versionutils . deprecated . ICEHOUSE ) #NEWLINE# def do_outdated_stuff( data ) : #NEWLINE# #INDENT# return data #NEWLINE# #UNINDENT# expected_rv = 'expected return value' #NEWLINE# retval = do_outdated_stuff ( expected_rv ) #NEWLINE# self . assertThat ( retval , matchers . Equals ( expected_rv ) )