Code

Regression test case to ensure FileClass attribute bug doesn't show up again.
authorjlgijsbers <jlgijsbers@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 11 Aug 2003 11:28:31 +0000 (11:28 +0000)
committerjlgijsbers <jlgijsbers@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 11 Aug 2003 11:28:31 +0000 (11:28 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1802 57a73879-2fb5-44c3-a270-3262357dd7e2

test/test_cgi.py

index be73124e9e90a5d8e9ee05f98d5671826bf4cc3a..db6081c81aeffe5089f057afac71369b9a22be87 100644 (file)
@@ -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 @@ class FormTestCase(unittest.TestCase):
             ({('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
     #