#NEWLINE# def test_memoizes_multiarg( self ) : #NEWLINE# #INDENT# 'Test if memoization works with multiple arguments\n        ' #NEWLINE# called = [ 0 ] #NEWLINE# @ persistent_memoize #NEWLINE# def target( arg1 , arg2 ) : #NEWLINE# #INDENT# 'Test function...' #NEWLINE# called [ 0 ] += 1 #NEWLINE# return ( arg1 + arg2 ) #NEWLINE# #UNINDENT# result1 = target ( 1 , 2 ) #NEWLINE# self . assertEqual ( result1 , 3 ) #NEWLINE# self . assertEqual ( called [ 0 ] , 1 ) #NEWLINE# result2 = target ( 1 , 2 ) #NEWLINE# self . assertEqual ( result2 , 3 ) #NEWLINE# self . assertEqual ( called [ 0 ] , 1 )