cpython: 4f64b1c87a56 (original) (raw)
Mercurial > cpython
changeset 100893:4f64b1c87a56 2.7
Issue #26609: Fix up Python 2 port [#26609]
Martin Panter vadmium+py@gmail.com | |
---|---|
date | Sat, 09 Apr 2016 13:45:52 +0000 |
parents | 2691f81a89a7 |
children | 4dc347c5c8a8 |
files | Lib/test/test_httpservers.py |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-)[+] [-] Lib/test/test_httpservers.py 12 |
line wrap: on
line diff
--- a/Lib/test/test_httpservers.py +++ b/Lib/test/test_httpservers.py @@ -363,17 +363,17 @@ class SimpleHTTPServerTestCase(BaseTestC def test_path_without_leading_slash(self): response = self.request(self.tempdir_name + '/test')
self.check_status_and_reason(response, HTTPStatus.OK, data=self.data)[](#l1.7)
self.check_status_and_reason(response, 200, data=self.data)[](#l1.8) response = self.request(self.tempdir_name + '/test/')[](#l1.9)
self.check_status_and_reason(response, HTTPStatus.NOT_FOUND)[](#l1.10)
self.check_status_and_reason(response, 404)[](#l1.11) response = self.request(self.tempdir_name + '/')[](#l1.12)
self.check_status_and_reason(response, HTTPStatus.OK)[](#l1.13)
self.check_status_and_reason(response, 200)[](#l1.14) response = self.request(self.tempdir_name)[](#l1.15)
self.check_status_and_reason(response, HTTPStatus.MOVED_PERMANENTLY)[](#l1.16)
self.check_status_and_reason(response, 301)[](#l1.17) response = self.request(self.tempdir_name + '/?hi=2')[](#l1.18)
self.check_status_and_reason(response, HTTPStatus.OK)[](#l1.19)
self.check_status_and_reason(response, 200)[](#l1.20) response = self.request(self.tempdir_name + '?hi=1')[](#l1.21)
self.check_status_and_reason(response, HTTPStatus.MOVED_PERMANENTLY)[](#l1.22)
self.check_status_and_reason(response, 301)[](#l1.23) self.assertEqual(response.getheader("Location"),[](#l1.24) self.tempdir_name + "/?hi=1")[](#l1.25)