Issues #25232, #24657: Use new enum status to match rest of tests

This commit is contained in:
Martin Panter 2015-10-03 06:07:22 +00:00
parent 56b76d25dd
commit eb1fee9353
1 changed files with 2 additions and 2 deletions

View File

@ -627,14 +627,14 @@ class CGIHTTPServerTestCase(BaseTestCase):
def test_query_with_multiple_question_mark(self): def test_query_with_multiple_question_mark(self):
res = self.request('/cgi-bin/file4.py?a=b?c=d') res = self.request('/cgi-bin/file4.py?a=b?c=d')
self.assertEqual( self.assertEqual(
(b'a=b?c=d' + self.linesep, 'text/html', 200), (b'a=b?c=d' + self.linesep, 'text/html', HTTPStatus.OK),
(res.read(), res.getheader('Content-type'), res.status)) (res.read(), res.getheader('Content-type'), res.status))
def test_query_with_continuous_slashes(self): def test_query_with_continuous_slashes(self):
res = self.request('/cgi-bin/file4.py?k=aa%2F%2Fbb&//q//p//=//a//b//') res = self.request('/cgi-bin/file4.py?k=aa%2F%2Fbb&//q//p//=//a//b//')
self.assertEqual( self.assertEqual(
(b'k=aa%2F%2Fbb&//q//p//=//a//b//' + self.linesep, (b'k=aa%2F%2Fbb&//q//p//=//a//b//' + self.linesep,
'text/html', 200), 'text/html', HTTPStatus.OK),
(res.read(), res.getheader('Content-type'), res.status)) (res.read(), res.getheader('Content-type'), res.status))