#NEWLINE# def test_cache_url_value( self ) : #NEWLINE# #INDENT# cache_config = self . env . cache_url ( ) #NEWLINE# self . assertEqual ( cache_config [ 'BACKEND' ] , 'django.core.cache.backends.memcached.MemcachedCache' ) #NEWLINE# self . assertEqual ( cache_config [ 'LOCATION' ] , '127.0.0.1:11211' ) #NEWLINE# redis_config = self . env . cache_url ( 'CACHE_REDIS' ) #NEWLINE# self . assertEqual ( redis_config [ 'BACKEND' ] , 'django_redis.cache.RedisCache' ) #NEWLINE# self . assertEqual ( redis_config [ 'LOCATION' ] , 'redis://127.0.0.1:6379:1' ) #NEWLINE# self . assertEqual ( redis_config [ 'OPTIONS' ] , { #NEWLINE# #INDENT# 'CLIENT_CLASS' : 'django_redis.client.DefaultClient' , #NEWLINE# 'PASSWORD' : 'secret' , #NEWLINE# #UNINDENT# } )