#NEWLINE# def test_redis_socket_url( self ) : #NEWLINE# #INDENT# url = 'redis://:redispass@/path/to/socket.sock?db=0' #NEWLINE# url = Env . cache_url_config ( url ) #NEWLINE# self . assertEqual ( REDIS_DRIVER , url [ 'BACKEND' ] ) #NEWLINE# self . assertEqual ( url [ 'LOCATION' ] , 'unix://:redispass@/path/to/socket.sock' ) #NEWLINE# self . assertEqual ( url [ 'OPTIONS' ] , { #NEWLINE# #INDENT# 'DB' : 0 , #NEWLINE# #UNINDENT# } )