#NEWLINE# def test_autospec_keywords( self ) : #NEWLINE# #INDENT# @ patch ( ( '%s.function' % __name__ ) , autospec = True , return_value = 3 ) #NEWLINE# def test( mock_function ) : #NEWLINE# #INDENT# return function ( 1 , 2 ) #NEWLINE# #UNINDENT# result = test ( ) #NEWLINE# self . assertEqual ( result , 3 )