From d6d6dbdd14b1a1b3cff7e97e05b08a7b2e30ba4d Mon Sep 17 00:00:00 2001 From: jlgijsbers Date: Mon, 11 Aug 2003 11:28:31 +0000 Subject: [PATCH] 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 --- test/test_cgi.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 # -- 2.30.2