#NEWLINE# def test_conf_from_extra_conf( self ) : #NEWLINE# #INDENT# orig_parser = memcache . ConfigParser #NEWLINE# memcache . ConfigParser = get_config_parser ( ) #NEWLINE# try : #NEWLINE# #INDENT# app = memcache . MemcacheMiddleware ( FakeApp ( ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# memcache . ConfigParser = orig_parser #NEWLINE# #UNINDENT# self . assertEqual ( orig_parser . memcache_servers , '1.2.3.4:5' ) #NEWLINE# self . assertEqual ( app . memcache . _allow_pickle , False ) #NEWLINE# self . assertEqual ( app . memcache . _allow_unpickle , True ) #NEWLINE# self . assertEqual ( app . memcache . _client_cache [ '1.2.3.4:5' ] . max_size , 4 )