diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-04-09 13:45:52 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-04-09 13:45:52 (GMT) |
commit | ec3c245c6492f64b8a9a24e7d72b1e1ed318aa41 (patch) | |
tree | 0ff52ab796df1e2958ffc1d2c2b8a660064025d3 /Lib | |
parent | af58c857a8b699236aed6d70a29189c4cf4383f4 (diff) | |
download | cpython-ec3c245c6492f64b8a9a24e7d72b1e1ed318aa41.zip cpython-ec3c245c6492f64b8a9a24e7d72b1e1ed318aa41.tar.gz cpython-ec3c245c6492f64b8a9a24e7d72b1e1ed318aa41.tar.bz2 |
Issue #26609: Fix up Python 2 port
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_httpservers.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/test/test_httpservers.py b/Lib/test/test_httpservers.py index ab74e5b..8dab627 100644 --- a/Lib/test/test_httpservers.py +++ b/Lib/test/test_httpservers.py @@ -363,17 +363,17 @@ class SimpleHTTPServerTestCase(BaseTestCase): 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) + self.check_status_and_reason(response, 200, data=self.data) response = self.request(self.tempdir_name + '/test/') - self.check_status_and_reason(response, HTTPStatus.NOT_FOUND) + self.check_status_and_reason(response, 404) response = self.request(self.tempdir_name + '/') - self.check_status_and_reason(response, HTTPStatus.OK) + self.check_status_and_reason(response, 200) response = self.request(self.tempdir_name) - self.check_status_and_reason(response, HTTPStatus.MOVED_PERMANENTLY) + self.check_status_and_reason(response, 301) response = self.request(self.tempdir_name + '/?hi=2') - self.check_status_and_reason(response, HTTPStatus.OK) + self.check_status_and_reason(response, 200) response = self.request(self.tempdir_name + '?hi=1') - self.check_status_and_reason(response, HTTPStatus.MOVED_PERMANENTLY) + self.check_status_and_reason(response, 301) self.assertEqual(response.getheader("Location"), self.tempdir_name + "/?hi=1") |