Skip to content

Commit c203292

Browse files
author
Richard Jones
committed
fixing incorrect test - unset Strings should be (None) unset, not ""
1 parent 01fea71 commit c203292

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test_cgi.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# but WITHOUT ANY WARRANTY; without even the implied warranty of
99
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1010
#
11-
# $Id: test_cgi.py,v 1.4.2.1 2003-01-15 22:38:14 richard Exp $
11+
# $Id: test_cgi.py,v 1.4.2.2 2003-03-21 21:43:04 richard Exp $
1212

1313
import unittest, os, shutil, errno, sys, difflib, cgi
1414

@@ -87,10 +87,10 @@ def testSetString(self):
8787
def testEmptyStringSet(self):
8888
nodeid = self.db.issue.create(title='foo')
8989
self.assertEqual(client.parsePropsFromForm(self.db, self.db.issue,
90-
makeForm({'title': ''}), nodeid), {'title': ''})
90+
makeForm({'title': ''}), nodeid), {'title': None})
9191
nodeid = self.db.issue.create(title='foo')
9292
self.assertEqual(client.parsePropsFromForm(self.db, self.db.issue,
93-
makeForm({'title': ' '}), nodeid), {'title': ''})
93+
makeForm({'title': ' '}), nodeid), {'title': None})
9494

9595
#
9696
# Link

0 commit comments

Comments
 (0)