#NEWLINE# def testDelete( self ) : #NEWLINE# #INDENT# 'Test applying Delete operation.' #NEWLINE# m = mox . Mox ( ) #NEWLINE# ctx = context . Context ( None , None ) #NEWLINE# ctx . _mutation_pool = m . CreateMock ( context . _MutationPool ) #NEWLINE# entity = TestEntity ( ) #NEWLINE# operation = op . db . Delete ( entity ) #NEWLINE# ctx . _mutation_pool . delete ( entity ) #NEWLINE# m . ReplayAll ( ) #NEWLINE# try : #NEWLINE# #INDENT# operation ( ctx ) #NEWLINE# m . VerifyAll ( ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# m . UnsetStubs ( )