diff test/test_cgi.py @ 1541:a61ca144d3a4 maint-0.5

fixing incorrect test - unset Strings should be (None) unset, not ""
author Richard Jones <richard@users.sourceforge.net>
date Fri, 21 Mar 2003 21:43:04 +0000
parents a87f59436895
children b6621f8bd496
line wrap: on
line diff
--- a/test/test_cgi.py	Wed Mar 19 02:50:40 2003 +0000
+++ b/test/test_cgi.py	Fri Mar 21 21:43:04 2003 +0000
@@ -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.4.2.1 2003-01-15 22:38:14 richard Exp $
+# $Id: test_cgi.py,v 1.4.2.2 2003-03-21 21:43:04 richard Exp $
 
 import unittest, os, shutil, errno, sys, difflib, cgi
 
@@ -87,10 +87,10 @@
     def testEmptyStringSet(self):
         nodeid = self.db.issue.create(title='foo')
         self.assertEqual(client.parsePropsFromForm(self.db, self.db.issue,
-            makeForm({'title': ''}), nodeid), {'title': ''})
+            makeForm({'title': ''}), nodeid), {'title': None})
         nodeid = self.db.issue.create(title='foo')
         self.assertEqual(client.parsePropsFromForm(self.db, self.db.issue,
-            makeForm({'title': ' '}), nodeid), {'title': ''})
+            makeForm({'title': ' '}), nodeid), {'title': None})
 
     #
     # Link

Roundup Issue Tracker: http://roundup-tracker.org/