summaryrefslogtreecommitdiff
path: root/docs/testing.txt
diff options
context:
space:
mode:
authorBoulder Sprinters <boulder-sprinters@djangoproject.com>2007-03-28 21:30:05 +0000
committerBoulder Sprinters <boulder-sprinters@djangoproject.com>2007-03-28 21:30:05 +0000
commit1f3fc7bc9f8fca6b19b4b88852e5fce5f3dcf347 (patch)
treec173e5a0b31ab0d9b90cfd323d6e592fd8bfb177 /docs/testing.txt
parentd2c03a37798adf1975d96c12e927bed75db7feed (diff)
boulder-oracle-sprint: Merged to [4839], part two.
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@4842 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.,