From: jlgijsbers Date: Mon, 11 Aug 2003 11:28:31 +0000 (+0000) Subject: Regression test case to ensure FileClass attribute bug doesn't show up again. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d6d6dbdd14b1a1b3cff7e97e05b08a7b2e30ba4d;p=roundup.git Regression test case to ensure FileClass attribute bug doesn't show up again. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1802 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/test/test_cgi.py b/test/test_cgi.py index be73124..db6081c 100644 --- a/test/test_cgi.py +++ b/test/test_cgi.py @@ -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 #