summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_cgi.py
Commit message (Collapse)AuthorAgeFilesLines
* Merged revisions 67528 via svnmerge fromFred Drake2008-12-041-0/+26
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r67528 | fred.drake | 2008-12-04 13:25:17 -0500 (Thu, 04 Dec 2008) | 4 lines Issue #1055234: cgi.parse_header(): Fixed parsing of header parameters to support unusual filenames (such as those containing semi-colons) in Content-Disposition headers. ........
* Issue 3801. Fixing a dumb error in the deprecated parse_qsl()Facundo Batista2008-09-081-0/+11
| | | | function. Tests added.
* Issue 600362: Relocated parse_qs() and parse_qsl(), from the cgi moduleFacundo Batista2008-09-031-22/+0
| | | | | to the urlparse one. Added a PendingDeprecationWarning in the old module, it will be deprecated in the future. Docs and tests updated.
* Now a from submitted via POST that also has a query stringFacundo Batista2008-06-211-0/+88
| | | | | | will contain both FieldStorage and MiniFieldStorage items. Fixes #1817.
* Convert test_cgi to unittest.Georg Brandl2006-10-291-125/+135
|
* Whitespace normalization broke test_cgi, because a lineTim Peters2006-08-101-2/+2
| | | | | | of quoted test data relied on preserving a single trailing blank. Changed the string from raw to regular, and forced in the trailing blank via an explicit \x20 escape.
* Whitespace normalization.Tim Peters2006-08-101-1/+1
|
* Chris McDonough's patch to defend against certain DoS attacks on FieldStorage.Guido van Rossum2006-08-101-0/+69
| | | | SF bug #1112549.
* Removed use of 'cgi.initlog()' - the first call to cgi.log is actuallyAnthony Baxter2004-08-031-1/+0
| | | | | an initlog() (and initlog()'s docstring says "don't use this"!) This allows test_cgi to be run repeatedly in a single run of the interpreter.
* Don't return spurious empty fields if 'keep_empty_values' is True.Neil Schemenauer2004-07-191-2/+21
| | | | Fixes SF bug #990307.
* Complete the absolute import patch for the test suite. All relativeBarry Warsaw2002-07-301-1/+1
| | | | | | | | imports of test modules now import from the test package. Other related oddities are also fixed (like DeprecationWarning filters that weren't specifying the full import part, etc.). Also did a general code cleanup to remove all "from test.test_support import *"'s. Other from...import *'s weren't changed.
* This patch removes all uses of "assert" in the regression test suiteMarc-André Lemburg2001-01-171-27/+28
| | | | | | | and replaces them with a new API verify(). As a result the regression suite will also perform its tests in optimization mode. Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
* Fix a bizarre typo in the helper class ComparableException: theGuido van Rossum2001-01-171-1/+1
| | | | | | | | | | | | | __getattr__() method, which clearly (like the other methods) was intended to pass the __getattr__() call on to the self.err object, mistakenly returned getattr(self, self.err) rather than getattr(self.err, attr). Since self.err is not a string, this always raises a TypeError. Apparently that doesn't bother for the one attribute for which __getattr__() is actually called ('__coerce__'), but it broke the rich comparisons stuff that I'm trying to get into shape, so I'm fixing this now. (I could also simply remove the __getattr__() method, but fixing it seems more in the spirit of what the ComparableException class is trying to do.)
* Make reindent.py happy (convert everything to 4-space indents!).Fred Drake2000-10-231-3/+3
|
* fix bug #110661 (PR#356) -- accept either & or ; as separator for CGIJeremy Hylton2000-09-151-0/+5
| | | | | | query string also some doc string reformatting and use of string methods instead of older string.splitfields
* Closing patch #101120 -- After everyone agreed.Moshe Zadka2000-08-251-3/+13
|
* test the non-multipart sections of the cgi moduleJeremy Hylton2000-08-031-0/+172