Mercurial > p > roundup > code
changeset 1734:5a04969176dc
Regression test case to ensure FileClass attribute bug doesn't show up again.
| author | Johannes Gijsbers <jlgijsbers@users.sourceforge.net> |
|---|---|
| date | Mon, 11 Aug 2003 11:28:31 +0000 |
| parents | c1eff6170234 |
| children | 141d5a0869fa |
| files | test/test_cgi.py |
| diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/test/test_cgi.py Sun Aug 10 18:52:45 2003 +0000 +++ b/test/test_cgi.py Mon Aug 11 11:28:31 2003 +0000 @@ -8,7 +8,7 @@ # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # -# $Id: test_cgi.py,v 1.17 2003-06-24 03:30:40 richard Exp $ +# $Id: test_cgi.py,v 1.18 2003-08-11 11:28:31 jlgijsbers Exp $ import unittest, os, shutil, errno, sys, difflib, cgi, re @@ -198,6 +198,13 @@ ({('file', None): {'content': 'foo', 'name': 'foo.txt', 'type': 'text/plain'}}, [])) + def testEditFileClassAttributes(self): + self.assertEqual(self.parseForm({'name': 'foo.txt', + 'type': 'application/octet-stream'}, + 'file'), + ({('file', None): {'name': 'foo.txt', + 'type': 'application/octet-stream'}},[])) + # # Link #
