#NEWLINE# def test_redis_socket( ) : #NEWLINE# #INDENT# url = 'redis:///path/to/socket/1?key_prefix=site1' #NEWLINE# config = django_cache_url . parse ( url ) #NEWLINE# assert ( config [ 'BACKEND' ] == 'django_redis.cache.RedisCache' ) #NEWLINE# assert ( config [ 'LOCATION' ] == 'unix:/path/to/socket:1' ) #NEWLINE# assert ( 'OPTIONS' not in config )