#NEWLINE# @ mock . patch ( 'oslo_log.versionutils.report_deprecated_feature' ) #NEWLINE# def test_deprecating_a_method_returns_correct_value( self , mock_reporter ) : #NEWLINE# #INDENT# class C ( object ) : #NEWLINE# #INDENT# @ versionutils . deprecated ( as_of = versionutils . deprecated . ICEHOUSE ) #NEWLINE# def outdated_method( self , * args ) : #NEWLINE# #INDENT# return args #NEWLINE# #UNINDENT# #UNINDENT# retval = C ( ) . outdated_method ( 1 , 'of anything' ) #NEWLINE# self . assertThat ( mock_reporter , matchers . Equals ( ( 1 , 'of anything' ) ) )