mirror of https://github.com/django/django.git
A forgotten file from [7743] (test the new DictWrapper class).
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7744 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
915001ad0b
commit
5dabaf30b6
|
@ -125,4 +125,12 @@ Init from sequence of tuples
|
|||
>>> d = FileDict({'other-key': 'once upon a time...'})
|
||||
>>> repr(d)
|
||||
"{'other-key': 'once upon a time...'}"
|
||||
|
||||
### DictWrapper #############################################################
|
||||
|
||||
>>> f = lambda x: "*%s" % x
|
||||
>>> d = DictWrapper({'a': 'a'}, f, 'xx_')
|
||||
>>> "Normal: %(a)s. Modified: %(xx_a)s" % d
|
||||
'Normal: a. Modified: *a'
|
||||
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue