diff options
| author | Claude Paroz <claude@2xlibre.net> | 2014-04-26 16:00:15 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2014-04-26 16:02:53 +0200 |
| commit | 680a0f08b1ace39f995fce975caabb1875b07c6f (patch) | |
| tree | 165a26d3f91522e129adc12f977c38919d840a96 /docs/topics/testing | |
| parent | 6d6af7244b7e3c42ef77c89d6c3e8e0e79e7176f (diff) | |
Updated doc links to point to Python 3 documentation
Diffstat (limited to 'docs/topics/testing')
| -rw-r--r-- | docs/topics/testing/tools.txt | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt index 62e4605ba1..883bfaf9cd 100644 --- a/docs/topics/testing/tools.txt +++ b/docs/topics/testing/tools.txt @@ -77,8 +77,7 @@ Note a few important things about how the test client works: The test client is not capable of retrieving Web pages that are not powered by your Django project. If you need to retrieve other Web pages, - use a Python standard library module such as :mod:`urllib` or - :mod:`urllib2`. + use a Python standard library module such as :mod:`urllib`. * To resolve URLs, the test client uses whatever URLconf is pointed-to by your :setting:`ROOT_URLCONF` setting. @@ -479,9 +478,9 @@ can access these properties as part of a test condition. .. attribute:: Client.cookies - A Python :class:`~Cookie.SimpleCookie` object, containing the current values - of all the client cookies. See the documentation of the :mod:`Cookie` module - for more. + A Python :class:`~http.cookies.SimpleCookie` object, containing the current + values of all the client cookies. See the documentation of the + :mod:`http.cookies` module for more. .. attribute:: Client.session @@ -1247,7 +1246,7 @@ your test suite. Asserts that execution of callable ``callable_obj`` raised the ``expected_exception`` exception and that such exception has an ``expected_message`` representation. Any other outcome is reported as a - failure. Similar to unittest's :meth:`~unittest.TestCase.assertRaisesRegexp` + failure. Similar to unittest's :meth:`~unittest.TestCase.assertRaisesRegex` with the difference that ``expected_message`` isn't a regular expression. .. method:: SimpleTestCase.assertFieldOutput(fieldclass, valid, invalid, field_args=None, field_kwargs=None, empty_value='') |
