summaryrefslogtreecommitdiff
path: root/tests/responses
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2015-01-13 11:29:07 -0800
committerTim Graham <timograham@gmail.com>2015-01-28 06:59:40 -0500
commit24b2bc635e23e4235f51095fbe099beec27a65c8 (patch)
tree5800921109f8f30dccc5ee62516796a35512b646 /tests/responses
parent0f3ea8c0bc9c7f7f5e448b0b2137bc6351f5eae3 (diff)
Fixed #24137 -- Switched to HTTP reason phrases from Python stdlib.
Diffstat (limited to 'tests/responses')
-rw-r--r--tests/responses/tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/responses/tests.py b/tests/responses/tests.py
index 892c09b857..bf7a0e12ef 100644
--- a/tests/responses/tests.py
+++ b/tests/responses/tests.py
@@ -50,9 +50,9 @@ class HttpResponseBaseTests(SimpleTestCase):
class HttpResponseTests(SimpleTestCase):
def test_status_code(self):
- resp = HttpResponse(status=418)
- self.assertEqual(resp.status_code, 418)
- self.assertEqual(resp.reason_phrase, "I'M A TEAPOT")
+ resp = HttpResponse(status=503)
+ self.assertEqual(resp.status_code, 503)
+ self.assertEqual(resp.reason_phrase, "Service Unavailable")
def test_reason_phrase(self):
reason = "I'm an anarchist coffee pot on crack."