#NEWLINE# @ patch_policies #NEWLINE# def _loadapp( self , proxy_config_path ) : #NEWLINE# #INDENT# '\n        Load a proxy from an app.conf to get the memcache_ring\n\n        :returns: the memcache_ring of the memcache middleware filter\n        ' #NEWLINE# with mock . patch ( 'swift.proxy.server.Ring' ) : #NEWLINE# #INDENT# app = loadapp ( self ) #NEWLINE# #UNINDENT# memcache_ring = None #NEWLINE# while True : #NEWLINE# #INDENT# memcache_ring = getattr ( app , 'memcache' , None ) #NEWLINE# if memcache_ring : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# app = app . app #NEWLINE# #UNINDENT# return memcache_ring