#NEWLINE# def _testCallSuperWithDeferSuccess( self ) : #NEWLINE# #INDENT# 'Test the _CallSuperWithDefer() method.' #NEWLINE# method_name = '_FooMethod' #NEWLINE# args = [ 'foo' , 'bar' ] #NEWLINE# kwargs = { #NEWLINE# #INDENT# 'foo' : 'bar' , #NEWLINE# 'bar' : 'foo' , #NEWLINE# #UNINDENT# } #NEWLINE# mock_method = self . mox . CreateMockAnything ( ) #NEWLINE# setattr ( gaeserver . Auth1ServerDatastoreSession , method_name , mock_method ) #NEWLINE# mock_method ( * args , ** kwargs ) . AndReturn ( True ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# self . ams . _CallSuperWithDefer ( method_name , * mock_method , ** kwargs ) #NEWLINE# self . mox . VerifyAll ( )