Mercurial > cpython-lru_cache-weakref
comparison Lib/test/test_httpservers.py @ 47179:d17fac896a0b legacy-trunk
Activate two more test cases in test_httpservers.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Tue, 20 May 2008 06:15:36 +0000 |
| parents | efe22eef26be |
| children | 77557216ba32 |
comparison
equal
deleted
inserted
replaced
| 47177:454d38c1f47e | 47179:d17fac896a0b |
|---|---|
| 275 | 275 |
| 276 print "Content-type: text/html" | 276 print "Content-type: text/html" |
| 277 print | 277 print |
| 278 | 278 |
| 279 form = cgi.FieldStorage() | 279 form = cgi.FieldStorage() |
| 280 print "%%s, %%s, %%s" % (form.getfirst("spam"), form.getfirst("eggs"),\ | 280 print "%%s, %%s, %%s" %% (form.getfirst("spam"), form.getfirst("eggs"),\ |
| 281 form.getfirst("bacon")) | 281 form.getfirst("bacon")) |
| 282 """ | 282 """ |
| 283 | 283 |
| 284 class CGIHTTPServerTestCase(BaseTestCase): | 284 class CGIHTTPServerTestCase(BaseTestCase): |
| 285 class request_handler(NoLogRequestHandler, CGIHTTPRequestHandler): | 285 class request_handler(NoLogRequestHandler, CGIHTTPRequestHandler): |
| 339 | 339 |
| 340 def test_main(verbose=None): | 340 def test_main(verbose=None): |
| 341 try: | 341 try: |
| 342 cwd = os.getcwd() | 342 cwd = os.getcwd() |
| 343 test_support.run_unittest(BaseHTTPServerTestCase, | 343 test_support.run_unittest(BaseHTTPServerTestCase, |
| 344 #SimpleHTTPServerTestCase, | 344 SimpleHTTPServerTestCase, |
| 345 #CGIHTTPServerTestCase | 345 CGIHTTPServerTestCase |
| 346 ) | 346 ) |
| 347 finally: | 347 finally: |
| 348 os.chdir(cwd) | 348 os.chdir(cwd) |
| 349 | 349 |
| 350 if __name__ == '__main__': | 350 if __name__ == '__main__': |
