Ticket #6812: tests.diff
File tests.diff, 880 bytes (added by , 17 years ago) |
---|
-
django/contrib/formtools/tests.py
23 23 class PreviewTests(TestCase): 24 24 25 25 def setUp(self): 26 self._old_root_urlconf = settings.ROOT_URLCONF 26 27 settings.ROOT_URLCONF = 'django.contrib.formtools.test_urls' 27 28 # Create a FormPreview instance to share between tests 28 29 self.preview = preview.FormPreview(TestForm) 29 30 input_template = '<input type="hidden" name="%s" value="%s" />' 30 31 self.input = input_template % (self.preview.unused_name('stage'), "%d") 31 32 33 def tearDown(self): 34 settings.ROOT_URLCONF = self._old_root_urlconf 35 32 36 def test_unused_name(self): 33 37 """ 34 38 Verifies name mangling to get uniue field name.