summaryrefslogtreecommitdiff
path: root/docs/testing.txt
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2007-03-25 21:49:00 +0000
committerAdrian Holovaty <adrian@holovaty.com>2007-03-25 21:49:00 +0000
commit132cf258cbdce8bac1d7a3d713c3927f43ead1ed (patch)
tree2ce01dc4a7dd0374e085f706379d181e0b286507 /docs/testing.txt
parent25c15b17a86fa95b5374b9ef6366450b28a28b7a (diff)
newforms-admin: Merged to [4823]
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@4824 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/testing.txt')
-rw-r--r--docs/testing.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/testing.txt b/docs/testing.txt
index f7fd402502..31cea791d3 100644
--- a/docs/testing.txt
+++ b/docs/testing.txt
@@ -2,8 +2,6 @@
Testing Django applications
===========================
-**New in Django development version**.
-
Automated testing is an extremely useful weapon in the bug-killing arsenal
of the modern developer. When initially writing code, a test suite can be
used to validate that code behaves as expected. When refactoring or
@@ -227,6 +225,12 @@ can be invoked on the ``Client`` instance.
The key-value pairs in the data dictionary will be encoded as a multipart
message and used to create the POST data payload.
+ To submit multiple values for a given key (for example, to specify
+ the selections for a multiple selection list), provide the values as a
+ list or tuple for the required key. For example, a data dictionary of
+ ``{'choices': ('a','b','d')}`` would submit three selected rows for the
+ field named ``choices``.
+
Submitting files is a special case. To POST a file, you need only
provide the file field name as a key, and a file handle to the file you wish to
upload as a value. The Test Client will populate the two POST fields (i.e.,