Skip to content

Commit e221a9f

Browse files
author
Johannes Gijsbers
committed
Regression test case to ensure FileClass attribute bug doesn't show up again.
1 parent 33a1022 commit e221a9f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/test_cgi.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# but WITHOUT ANY WARRANTY; without even the implied warranty of
99
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1010
#
11-
# $Id: test_cgi.py,v 1.17 2003-06-24 03:30:40 richard Exp $
11+
# $Id: test_cgi.py,v 1.18 2003-08-11 11:28:31 jlgijsbers Exp $
1212

1313
import unittest, os, shutil, errno, sys, difflib, cgi, re
1414

@@ -198,6 +198,13 @@ def testFileUpload(self):
198198
({('file', None): {'content': 'foo', 'name': 'foo.txt',
199199
'type': 'text/plain'}}, []))
200200

201+
def testEditFileClassAttributes(self):
202+
self.assertEqual(self.parseForm({'name': 'foo.txt',
203+
'type': 'application/octet-stream'},
204+
'file'),
205+
({('file', None): {'name': 'foo.txt',
206+
'type': 'application/octet-stream'}},[]))
207+
201208
#
202209
# Link
203210
#

0 commit comments

Comments
 (0)