#NEWLINE# def test_filter_factory( self ) : #NEWLINE# #INDENT# factory = memcache . filter_factory ( { #NEWLINE# #INDENT# 'max_connections' : '3' , #NEWLINE# #UNINDENT# } , memcache_servers = '10.10.10.10:10' , memcache_serialization_support = '1' ) #NEWLINE# thefilter = factory ( 'myapp' ) #NEWLINE# self . assertEqual ( thefilter . app , 'myapp' ) #NEWLINE# self . assertEqual ( factory . memcache_servers , '10.10.10.10:10' ) #NEWLINE# self . assertEqual ( thefilter . memcache . _allow_pickle , False ) #NEWLINE# self . assertEqual ( thefilter . memcache . _allow_unpickle , True ) #NEWLINE# self . assertEqual ( thefilter . memcache . _client_cache [ '10.10.10.10:10' ] . max_size , 3 )