(original) (raw)
changeset: 100893:4f64b1c87a56 branch: 2.7 user: Martin Panter vadmium+py@gmail.com date: Sat Apr 09 13:45:52 2016 +0000 files: Lib/test/test_httpservers.py description: Issue #26609: Fix up Python 2 port diff -r 2691f81a89a7 -r 4f64b1c87a56 Lib/test/test_httpservers.py --- a/Lib/test/test_httpservers.py Sat Apr 09 04:56:10 2016 +0000 +++ b/Lib/test/test_httpservers.py Sat Apr 09 13:45:52 2016 +0000 @@ -363,17 +363,17 @@ 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") /vadmium+py@gmail.com