Django

Code

Changeset 7705

Show
Ignore:
Timestamp:
06/19/08 08:32:39 (5 months ago)
Author:
russellm
Message:

Fixed #6812 -- Modified the formtools test case to be run order safe with respect to the ROOT_URLCONF setting. Thanks for the patch, james

Files:

Legend:

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

    r7294 r7705  
    2424 
    2525    def setUp(self): 
     26        self._old_root_urlconf = settings.ROOT_URLCONF 
    2627        settings.ROOT_URLCONF = 'django.contrib.formtools.test_urls' 
    2728        # Create a FormPreview instance to share between tests 
     
    3031        self.input = input_template % (self.preview.unused_name('stage'), "%d") 
    3132 
     33    def tearDown(self): 
     34        settings.ROOT_URLCONF = self._old_root_urlconf 
     35         
    3236    def test_unused_name(self): 
    3337        """