summaryrefslogtreecommitdiff
path: root/docs/topics/testing
diff options
context:
space:
mode:
author薛丞宏 <ihcaoe@gmail.com>2015-10-23 21:12:49 +0800
committerTim Graham <timograham@gmail.com>2015-10-23 14:26:19 -0400
commit484edc81c1ebd195c333f3ea8d3f9ca882a17837 (patch)
tree66bb3b4f854a3085be1d4ce4d259d11158ec2421 /docs/topics/testing
parent89359347c4e7be123dd99d13a43d75e8610ae1dc (diff)
Clarified that the test client response content attribute is bytes.
Diffstat (limited to 'docs/topics/testing')
-rw-r--r--docs/topics/testing/tools.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt
index 43255fa589..10945cc070 100644
--- a/docs/topics/testing/tools.txt
+++ b/docs/topics/testing/tools.txt
@@ -54,7 +54,7 @@ Web pages::
200
>>> response = c.get('/customer/details/')
>>> response.content
- '<!DOCTYPE html...'
+ b'<!DOCTYPE html...'
As this example suggests, you can instantiate ``Client`` from within a session
of the Python interactive interpreter.
@@ -433,8 +433,8 @@ Specifically, a ``Response`` object has the following attributes:
.. attribute:: content
- The body of the response, as a string. This is the final page content as
- rendered by the view, or any error message.
+ The body of the response, as a bytestring. This is the final page
+ content as rendered by the view, or any error message.
.. attribute:: context