#NEWLINE# def init_app( self , args , memory_cache = False ) : #NEWLINE# #INDENT# self . connection = Mock ( ) #NEWLINE# if memory_cache : #NEWLINE# #INDENT# self . cache = glacier . Cache ( 0 , db_path = ':memory:' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . cache = Mock ( ) #NEWLINE# #UNINDENT# self . app = glacier . App ( args = args , connection = self . connection , cache = self . cache )