summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGael Pasgrimaud <gael@gawel.org>2011-08-20 20:52:49 +0200
committerGael Pasgrimaud <gael@gawel.org>2011-08-20 20:52:49 +0200
commit2d2ca516975add943b1464e60a451edc253cabb9 (patch)
treec5453bacaf17229fdf7fd8ffa81edc75fae9cacf /docs
parent89b6ee0893b27eb6a6d0eafd1bc545dc8b64b3c3 (diff)
downloadwebtest-2d2ca516975add943b1464e60a451edc253cabb9.tar.gz
fix test for 2.5 and 2.6
Diffstat (limited to 'docs')
-rw-r--r--docs/index.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/index.txt b/docs/index.txt
index de55e47..a14a0ff 100644
--- a/docs/index.txt
+++ b/docs/index.txt
@@ -88,7 +88,7 @@ any configuration, you must set that up manually in your tests.)
>>> res.status
'200 OK'
>>> res.form
- <webtest.Form object at ...>
+ <webtest.testapp.Form object at ...>
Making Requests
---------------
@@ -254,7 +254,7 @@ Then you fill it in fields:
POST
>>> # dict of fields
>>> fields = form.fields.items(); fields.sort(); fields
- [(u'name', [<webtest.Text object at ...>]), (u'submit', [<webtest.Submit object at ...>])]
+ [(u'name', [<webtest.testapp.Text object at ...>]), (u'submit', [<webtest.testapp.Submit object at ...>])]
>>> form['name'] = 'Bob'
>>> # When names don't point to a single field:
>>> form.set('name', 'Bob', index=0)
@@ -334,8 +334,8 @@ Examples:
>>> res = TestResponse(content_type='application/json',
... body='{"a":1,"b":2}')
>>> res.request = TestRequest.blank('/')
- >>> res.json
- {u'a': 1, u'b': 2}
+ >>> res.json.values()
+ [1, 2]
>>> res = TestResponse(content_type='application/xml',
... body='<xml><message>hey!</message></xml>')
>>> res.request = TestRequest.blank('/')