]> granicus.if.org Git - python/commitdiff
Issues #25232, #24657: Use new enum status to match rest of tests
authorMartin Panter <vadmium+py@gmail.com>
Sat, 3 Oct 2015 06:07:22 +0000 (06:07 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Sat, 3 Oct 2015 06:07:22 +0000 (06:07 +0000)
Lib/test/test_httpservers.py

index 50244c6ab1d51ab1460f3dde46343e1e545ec673..d4c8eabd42205b04d005d0d5fe6759a55044dd2b 100644 (file)
@@ -627,14 +627,14 @@ class CGIHTTPServerTestCase(BaseTestCase):
     def test_query_with_multiple_question_mark(self):
         res = self.request('/cgi-bin/file4.py?a=b?c=d')
         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))
 
     def test_query_with_continuous_slashes(self):
         res = self.request('/cgi-bin/file4.py?k=aa%2F%2Fbb&//q//p//=//a//b//')
         self.assertEqual(
             (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))