#NEWLINE# def test_redis_parsing( self ) : #NEWLINE# #INDENT# url = 'rediscache://127.0.0.1:6379:1?client_class=django_redis.client.DefaultClient&password=secret' #NEWLINE# url = Env . cache_url_config ( url ) #NEWLINE# self . assertEqual ( url [ 'BACKEND' ] , REDIS_DRIVER ) #NEWLINE# self . assertEqual ( url [ 'LOCATION' ] , 'redis://127.0.0.1:6379:1' ) #NEWLINE# self . assertEqual ( url [ 'OPTIONS' ] , { #NEWLINE# #INDENT# 'CLIENT_CLASS' : 'django_redis.client.DefaultClient' , #NEWLINE# 'PASSWORD' : 'secret' , #NEWLINE# #UNINDENT# } )