Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Malcolm Tredinnick authored June 26, 2008
8  tests/regressiontests/datastructures/tests.py
@@ -125,4 +125,12 @@
125 125
 >>> d = FileDict({'other-key': 'once upon a time...'})
126 126
 >>> repr(d)
127 127
 "{'other-key': 'once upon a time...'}"
  128
+
  129
+### DictWrapper #############################################################
  130
+
  131
+>>> f = lambda x: "*%s" % x
  132
+>>> d = DictWrapper({'a': 'a'}, f, 'xx_')
  133
+>>> "Normal: %(a)s. Modified: %(xx_a)s" % d
  134
+'Normal: a. Modified: *a'
  135
+
128 136
 """

0 notes on commit 5dabaf3

Please sign in to comment.
Something went wrong with that request. Please try again.