summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_cgi.py
Commit message (Collapse)AuthorAgeFilesLines
* Merged revisions 86596 via svnmerge fromEzio Melotti2010-11-211-2/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line #9424: Replace deprecated assert* methods in the Python test suite. ........
* Issue 7832: renaming unittest.TestCase.assertSameElements to ↵Michael Foord2010-03-201-9/+9
| | | | assertItemsEqual and changing behaviour
* Fix and check cgi module deprecation warnings. Revert an unwanted rename in ↵Florent Xicluna2010-03-171-5/+6
| | | | test_import.
* Cleanup some test cases using check_warnings and check_py3k_warnings.Florent Xicluna2010-03-171-4/+4
|
* #7092: silence more -3 and -Wd warningsEzio Melotti2010-01-311-23/+20
|
* Reverting the Revision: 77368. I committed Flox's big patch for tests bySenthil Kumaran2010-01-081-1/+1
| | | | mistake. ( It may come in for sure tough)
* Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. ↵Senthil Kumaran2010-01-081-1/+1
| | | | Patch by flox
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-5/+5
|
* Issue #1055234: cgi.parse_header(): Fixed parsing of header parameters toFred Drake2008-12-041-0/+26
| | | | | 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