#NEWLINE# def MockSelf( self , name ) : #NEWLINE# #INDENT# "Mock a method in the tested class's instance." #NEWLINE# if ( not ( name in name . _set_mock ) ) : #NEWLINE# #INDENT# self . mox . StubOutWithMock ( self . _test , name ) #NEWLINE# self . _set_mock [ name ] = 1