summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGeorges Dubus <georges.dubus@compiletoi.net>2013-02-23 17:16:32 +0100
committerGeorges Dubus <georges.dubus@compiletoi.net>2013-02-23 17:22:34 +0100
commitb58cb07681ebfe8b53cfca3854e7445159355488 (patch)
tree473c4ea6b9fee9f9a2cdef3234a6115220c9ca12 /docs
parentdad375114987c9018b62d793ac69a5e54426914f (diff)
downloadwebtest-b58cb07681ebfe8b53cfca3854e7445159355488.tar.gz
Reviewed documentation for `TestResponse`.
Diffstat (limited to 'docs')
-rw-r--r--docs/webtest.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/webtest.txt b/docs/webtest.txt
index c8ac2eb..ec6f64c 100644
--- a/docs/webtest.txt
+++ b/docs/webtest.txt
@@ -155,7 +155,8 @@ The added methods:
``response.follow(**kw)``:
Follows the redirect, returning the new response. It is an error
if this response wasn't a redirect. Any keyword arguments are
- passed to ``app.get`` (e.g., ``status``).
+ passed to :class:`webtest.TestApp` (e.g., ``status``). Returns
+ another response object.
``x in response``:
Returns True if the string is found in the response body.
@@ -163,8 +164,10 @@ The added methods:
``response.mustcontain(string1, string2, no=string3)``:
Raises an error if any of the strings are not found in the
- response. It also prints out the response in that case, so
- you can see the real response.
+ response. If a string of a string list is given as `no` keyword
+ argument, raise an error if one of those are found in the
+ response. It also prints out the response in that case, so you
+ can see the real response.
``response.showbrowser()``:
Opens the HTML response in a browser; useful for debugging.