Mercurial > p > roundup > code
comparison test/test_cgi.py @ 3656:0119e04886d8
@required in forms may now specify properties of linked items
(patch [SF#1507093])
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 11 Aug 2006 00:18:59 +0000 |
| parents | 0e5f15520e70 |
| children | 74aebbbea305 |
comparison
equal
deleted
inserted
replaced
| 3655:8169e97a6f26 | 3656:0119e04886d8 |
|---|---|
| 6 # | 6 # |
| 7 # This module is distributed in the hope that it will be useful, | 7 # This module is distributed in the hope that it will be useful, |
| 8 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 8 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 10 # | 10 # |
| 11 # $Id: test_cgi.py,v 1.27 2006-01-25 02:24:28 richard Exp $ | 11 # $Id: test_cgi.py,v 1.28 2006-08-11 00:18:59 richard Exp $ |
| 12 | 12 |
| 13 import unittest, os, shutil, errno, sys, difflib, cgi, re | 13 import unittest, os, shutil, errno, sys, difflib, cgi, re |
| 14 | 14 |
| 15 from roundup.cgi import client | 15 from roundup.cgi import client |
| 16 from roundup.cgi.exceptions import FormError | 16 from roundup.cgi.exceptions import FormError |
| 150 {':required': ['title','status'], 'status':'1'}, 'issue') | 150 {':required': ['title','status'], 'status':'1'}, 'issue') |
| 151 self.assertRaises(FormError, self.parseForm, | 151 self.assertRaises(FormError, self.parseForm, |
| 152 {':required': 'status', 'status':''}, 'issue') | 152 {':required': 'status', 'status':''}, 'issue') |
| 153 self.assertRaises(FormError, self.parseForm, | 153 self.assertRaises(FormError, self.parseForm, |
| 154 {':required': 'nosy', 'nosy':''}, 'issue') | 154 {':required': 'nosy', 'nosy':''}, 'issue') |
| 155 self.assertRaises(FormError, self.parseForm, | |
| 156 {':required': 'msg-1@content', 'msg-1@content':''}, 'issue') | |
| 157 self.assertRaises(FormError, self.parseForm, | |
| 158 {':required': 'msg-1@content'}, 'issue') | |
| 155 | 159 |
| 156 # | 160 # |
| 157 # Nonexistant edit | 161 # Nonexistant edit |
| 158 # | 162 # |
| 159 def testEditNonexistant(self): | 163 def testEditNonexistant(self): |
