  >>> import tempfile
  >>> from django.core.files.storage import FileSystemStorage
  >>> from django.core.files.base import ContentFile
  
  >>> temp_storage = FileSystemStorage(location=tempfile.gettempdir())
  
  # Standard file access options are available, and work as expected.
  
  >>> temp_storage.exists('storage_test')
  False
 
</s> remove >>> custom_storage = CustomStorage(tempfile.gettempdir())
 </s> add >>> custom_storage = CustomStorage(temp_dir)
# Set up a unique temporary directory
>>> import os
>>> temp_dir = tempfile.mktemp()
>>> os.makedirs(temp_dir)

>>> temp_storage = FileSystemStorage(location=temp_dir)
  >>> import tempfile
  >>> from django.core.files.storage import FileSystemStorage
  >>> from django.core.files.base import ContentFile
  
# Set up a unique temporary directory
>>> import os
>>> temp_dir = tempfile.mktemp()
>>> os.makedirs(temp_dir)

>>> temp_storage = FileSystemStorage(location=temp_dir)
  
  # Standard file access options are available, and work as expected.
  
  >>> temp_storage.exists('storage_test')
  False
keep keep keep keep replace keep keep keep keep keep
 Fixed #8244: Modified the temporary directory used by file storage tests so that mutliple test runs can be performed in parallel without conflict. 

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8376 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
tests/regressiontests/file_storage/tests.py