From 6d0ba17757a7c7ce6a18aa0abe04d71c010243c2 Mon Sep 17 00:00:00 2001 From: richard Date: Tue, 17 Feb 2004 03:48:08 +0000 Subject: [PATCH] test fixes git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2096 57a73879-2fb5-44c3-a270-3262357dd7e2 --- test/test_cgi.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/test_cgi.py b/test/test_cgi.py index 5af0011..c8494a0 100644 --- a/test/test_cgi.py +++ b/test/test_cgi.py @@ -8,13 +8,13 @@ # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # -# $Id: test_cgi.py,v 1.22 2004-02-11 21:34:31 jlgijsbers Exp $ +# $Id: test_cgi.py,v 1.23 2004-02-17 03:48:08 richard Exp $ import unittest, os, shutil, errno, sys, difflib, cgi, re from roundup.cgi import client -from roundup.cgi.errors import FormError -from roundup.cgi.FormParser import FormParser +from roundup.cgi.exceptions import FormError +from roundup.cgi.form_parser import FormParser from roundup import init, instance, password, hyperdb, date NEEDS_INSTANCE = 1 @@ -99,7 +99,7 @@ class FormTestCase(unittest.TestCase): cl.classname = classname cl.nodeid = nodeid cl.db = self.db - return cl.parsePropsFromForm() + return cl.parsePropsFromForm(create=1) def tearDown(self): self.db.close() @@ -273,7 +273,7 @@ class FormTestCase(unittest.TestCase): cl.classname = 'issue' cl.nodeid = None cl.db = self.db - self.assertEqual(cl.parsePropsFromForm(), + self.assertEqual(cl.parsePropsFromForm(create=1), ({('issue', None): {'nosy': ['1','2', '3']}}, [])) def testEmptyMultilinkSet(self): -- 2.30.2