summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMikhail Korobov <kmike84@gmail.com>2013-03-04 00:41:59 +0600
committerMikhail Korobov <kmike84@gmail.com>2013-03-04 00:41:59 +0600
commitef825b41e2f1b38a2042d4b831c367f6542e4d0d (patch)
tree66f489e76413f53dac4d73b6ae25300715c76327 /docs
parentd9b6d90267772ce1d2812ade8aa1f7198b6447b6 (diff)
downloadwebtest-ef825b41e2f1b38a2042d4b831c367f6542e4d0d.tar.gz
TestResponse.maybe_follow() method
Diffstat (limited to 'docs')
-rw-r--r--docs/testresponse.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/testresponse.txt b/docs/testresponse.txt
index 45826ef..66ed8c0 100644
--- a/docs/testresponse.txt
+++ b/docs/testresponse.txt
@@ -32,10 +32,16 @@ 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
+ if this response wasn't a redirect. All keyword arguments are
passed passed to :class:`webtest.TestApp` (e.g., ``status``). Returns
another response object.
+``response.maybe_follow(**kw)``:
+ Follows all redirects; does nothing if this response
+ is not a redirect. All keyword arguments are passed 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.
Whitespace is normalized for this test.