Ticket #10130: 10130-r10407.diff
File 10130-r10407.diff, 1.8 KB (added by , 16 years ago) |
---|
-
django/utils/functional.py
281 281 self._setup() 282 282 setattr(self._wrapped, name, value) 283 283 284 def __delattr__(self, name): 285 if name == "_wrapped": 286 raise NotImplementedError() 287 else: 288 if self._wrapped is None: 289 self._setup() 290 delattr(self._wrapped, name) 291 284 292 def _setup(self): 285 293 """ 286 294 Must be implemented by subclasses to initialise the wrapped object. -
tests/regressiontests/settings/tests.py
Property changes on: tests/regressiontests/settings/__init__.py ___________________________________________________________________ Added: svn:eol-style + native
1 import unittest 2 from django.conf import settings 3 4 class SettingsTest(unittest.TestCase): 5 6 def testSetDelete(self): 7 settings.TEST = 'test' 8 del settings.TEST