summaryrefslogtreecommitdiff
path: root/docs/topics/python3.txt
diff options
context:
space:
mode:
authorRamiro Morales <cramm0@gmail.com>2013-05-18 19:04:34 -0300
committerRamiro Morales <cramm0@gmail.com>2013-05-18 19:04:34 -0300
commit0a50311063c416ec4d39f518e8d8110dd7eddbdf (patch)
tree91130c64f11c505c85e4f0d3070c141f5909198b /docs/topics/python3.txt
parent69523c1ba385cbf8a0524cab3b0396e9cec50114 (diff)
Fixed #20004 -- Moved non DB-related assertions to SimpleTestCase.
Thanks zalew for the suggestion and work on a patch. Also updated, tweaked and fixed testing documentation.
Diffstat (limited to 'docs/topics/python3.txt')
-rw-r--r--docs/topics/python3.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/topics/python3.txt b/docs/topics/python3.txt
index 22e609c75c..9a0438e9e5 100644
--- a/docs/topics/python3.txt
+++ b/docs/topics/python3.txt
@@ -201,8 +201,8 @@ According to :pep:`3333`:
Specifically, :attr:`HttpResponse.content <django.http.HttpResponse.content>`
contains ``bytes``, which may become an issue if you compare it with a
``str`` in your tests. The preferred solution is to rely on
-:meth:`~django.test.TestCase.assertContains` and
-:meth:`~django.test.TestCase.assertNotContains`. These methods accept a
+:meth:`~django.test.SimpleTestCase.assertContains` and
+:meth:`~django.test.SimpleTestCase.assertNotContains`. These methods accept a
response and a unicode string as arguments.
Coding guidelines