Django

Code

Changeset 6890

Show
Ignore:
Timestamp:
12/04/07 14:29:43 (10 months ago)
Author:
jacob
Message:

Added a test for [6889]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/contrib/sessions/tests.py

    r6831 r6890  
    11r""" 
    22 
     3>>> from django.conf import settings 
    34>>> from django.contrib.sessions.backends.db import SessionStore as DatabaseSession 
    45>>> from django.contrib.sessions.backends.cache import SessionStore as CacheSession 
     
    3940>>> file_session.exists(file_session.session_key) 
    4041False 
     42 
     43# Make sure the file backend checks for a good storage dir 
     44>>> settings.SESSION_FILE_PATH = "/if/this/directory/exists/you/have/a/weird/computer" 
     45>>> FileSession() 
     46Traceback (innermost last): 
     47    ... 
     48ImproperlyConfigured: The session storage path '/if/this/directory/exists/you/have/a/weird/computer' doesn't exist. Please set your SESSION_FILE_PATH setting to an existing directory in which Django can store session data. 
    4149 
    4250>>> cache_session = CacheSession()