#NEWLINE# def testGetWhenCacheHit( self ) : #NEWLINE# #INDENT# 'Test _Get().' #NEWLINE# sid = self . sid #NEWLINE# data = 'data we want to be cached' #NEWLINE# self . _MockMemcache ( 'get' , self . _Key ( sid ) ) . AndReturn ( data ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# self . assertEqual ( self . ams . _Get ( sid ) , data ) #NEWLINE# self . mox . VerifyAll ( )