|
8 | 8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
9 | 9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
10 | 10 | # |
11 | | -# $Id: test_cgi.py,v 1.22 2004-02-11 21:34:31 jlgijsbers Exp $ |
| 11 | +# $Id: test_cgi.py,v 1.23 2004-02-17 03:48:08 richard Exp $ |
12 | 12 |
|
13 | 13 | import unittest, os, shutil, errno, sys, difflib, cgi, re |
14 | 14 |
|
15 | 15 | from roundup.cgi import client |
16 | | -from roundup.cgi.errors import FormError |
17 | | -from roundup.cgi.FormParser import FormParser |
| 16 | +from roundup.cgi.exceptions import FormError |
| 17 | +from roundup.cgi.form_parser import FormParser |
18 | 18 | from roundup import init, instance, password, hyperdb, date |
19 | 19 |
|
20 | 20 | NEEDS_INSTANCE = 1 |
@@ -99,7 +99,7 @@ def parseForm(self, form, classname='test', nodeid=None): |
99 | 99 | cl.classname = classname |
100 | 100 | cl.nodeid = nodeid |
101 | 101 | cl.db = self.db |
102 | | - return cl.parsePropsFromForm() |
| 102 | + return cl.parsePropsFromForm(create=1) |
103 | 103 |
|
104 | 104 | def tearDown(self): |
105 | 105 | self.db.close() |
@@ -273,7 +273,7 @@ def testMixedMultilink(self): |
273 | 273 | cl.classname = 'issue' |
274 | 274 | cl.nodeid = None |
275 | 275 | cl.db = self.db |
276 | | - self.assertEqual(cl.parsePropsFromForm(), |
| 276 | + self.assertEqual(cl.parsePropsFromForm(create=1), |
277 | 277 | ({('issue', None): {'nosy': ['1','2', '3']}}, [])) |
278 | 278 |
|
279 | 279 | def testEmptyMultilinkSet(self): |
|
0 commit comments