Mercurial > cpython-lru_cache-weakref
comparison Lib/test/test_httpservers.py @ 76219:89eeaa18700f 2.7
fix the incorrect changes made for PATH_INFO value - Issue10484
| author | Senthil Kumaran <senthil@uthcode.com> |
|---|---|
| date | Wed, 11 Apr 2012 03:07:57 +0800 |
| parents | bab9f29c93fd |
| children | c67efb8ffca4 |
comparison
equal
deleted
inserted
replaced
| 76214:118294ea7d3a | 76219:89eeaa18700f |
|---|---|
| 417 os.rmdir(self.parent_dir) | 417 os.rmdir(self.parent_dir) |
| 418 finally: | 418 finally: |
| 419 BaseTestCase.tearDown(self) | 419 BaseTestCase.tearDown(self) |
| 420 | 420 |
| 421 def test_url_collapse_path_split(self): | 421 def test_url_collapse_path_split(self): |
| 422 # verify tail is the last portion and head is the rest on proper urls | |
| 422 test_vectors = { | 423 test_vectors = { |
| 423 '': ('/', ''), | 424 '': ('/', ''), |
| 424 '..': IndexError, | 425 '..': IndexError, |
| 425 '/.//..': IndexError, | 426 '/.//..': IndexError, |
| 426 '/': ('/', ''), | 427 '/': ('/', ''), |
| 427 '//': ('/', ''), | 428 '//': ('/', ''), |
| 428 '/\\': ('/', '\\'), | 429 '/\\': ('/', '\\'), |
| 429 '/.//': ('/', ''), | 430 '/.//': ('/', ''), |
| 430 'cgi-bin/file1.py': ('/cgi-bin', 'file1.py'), | 431 'cgi-bin/file1.py': ('/cgi-bin', 'file1.py'), |
| 431 '/cgi-bin/file1.py': ('/cgi-bin', 'file1.py'), | 432 '/cgi-bin/file1.py': ('/cgi-bin', 'file1.py'), |
| 432 '/cgi-bin/file1.py/PATH-INFO': ('/cgi-bin', 'file1.py/PATH-INFO'), | |
| 433 'a': ('/', 'a'), | 433 'a': ('/', 'a'), |
| 434 '/a': ('/', 'a'), | 434 '/a': ('/', 'a'), |
| 435 '//a': ('/', 'a'), | 435 '//a': ('/', 'a'), |
| 436 './a': ('/', 'a'), | 436 './a': ('/', 'a'), |
| 437 './C:/': ('/C:', ''), | 437 './C:/': ('/C:', ''), |
