#NEWLINE# def testBaseModelMemcacheWrappedGetNoEntity( self ) : #NEWLINE# #INDENT# 'Test BaseModel.MemcacheWrappedGet() when entity does not exist.' #NEWLINE# key_name = 'foo_key_name' #NEWLINE# memcache_key = ( 'mwg_%s_%s' % ( models . BaseModel . kind ( ) , key_name ) ) #NEWLINE# self . mox . StubOutWithMock ( models , 'memcache' , self . mox . CreateMockAnything ( ) ) #NEWLINE# self . mox . StubOutWithMock ( models . BaseModel , 'get_by_key_name' , self . mox . CreateMockAnything ( ) ) #NEWLINE# models . memcache . get ( memcache_key ) . AndReturn ( None ) #NEWLINE# models . BaseModel . get_by_key_name ( key_name ) . AndReturn ( None ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# self . assertEqual ( None , models . BaseModel . MemcacheWrappedGet ( key_name ) ) #NEWLINE# self . mox . VerifyAll ( )