Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit 5dabaf30b6219d5f0365fe159d15c540b34055a3 1 parent 915001a
@malcolmt malcolmt authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 tests/regressiontests/datastructures/tests.py
View
8 tests/regressiontests/datastructures/tests.py
@@ -125,4 +125,12 @@
>>> 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'
+
"""
Please sign in to comment.
Something went wrong with that request. Please try again.