summaryrefslogtreecommitdiff
path: root/docs/topics/testing
diff options
context:
space:
mode:
authorUnai Zalakain <unai@gisa-elkartea.org>2013-10-28 20:34:09 +0100
committerUnai Zalakain <unai@gisa-elkartea.org>2013-11-07 19:06:32 +0100
commit9c5f6cd565f1bc519dec20e3e44313cb8d8e0e94 (patch)
tree47db482d5b97b863e78a5acaf816116511458831 /docs/topics/testing
parent9b95fa7777c4b484f8053b87f48d65c853945f19 (diff)
Fixed #13725 -- take url scheme into account in assertRedirects
Scheme is handled correctly when making comparisons between two URLs. If there isn't any scheme specified in the location where we are redirected to, the original request's scheme is used. If present, the scheme in ``expected_url`` is the one used to make the comparations to.
Diffstat (limited to 'docs/topics/testing')
-rw-r--r--docs/topics/testing/overview.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/topics/testing/overview.txt b/docs/topics/testing/overview.txt
index 7093138188..133931559e 100644
--- a/docs/topics/testing/overview.txt
+++ b/docs/topics/testing/overview.txt
@@ -1576,6 +1576,13 @@ your test suite.
loaded. Since the test client can't fetch externals URLs, this is
particularly useful if ``expected_url`` isn't part of your Django app.
+ .. versionadded:: 1.7
+
+ Scheme is handled correctly when making comparisons between two URLs. If
+ there isn't any scheme specified in the location where we are redirected to,
+ the original request's scheme is used. If present, the scheme in
+ ``expected_url`` is the one used to make the comparisons to.
+
.. method:: SimpleTestCase.assertHTMLEqual(html1, html2, msg=None)
Asserts that the strings ``html1`` and ``html2`` are equal. The comparison