Use unicode strings for test requests in test_comments_viewlet to make the Plone 3 tests happy.

svn path=/plone.app.discussion/trunk/; revision=39680
This commit is contained in:
Timo Stollenwerk 2010-09-06 10:40:06 +00:00
parent f918b7698b
commit 68a264c9d9

View File

@ -83,7 +83,7 @@ class TestCommentForm(PloneTestCase):
self.failIf(commentForm.handleComment(commentForm, "foo")) self.failIf(commentForm.handleComment(commentForm, "foo"))
# The form should return an error if the comment text field is empty # The form should return an error if the comment text field is empty
request = make_request(form={'form.widgets.text': 'foo'}) request = make_request(form={'form.widgets.text': u'foo'})
commentForm = getMultiAdapter((self.context, request), commentForm = getMultiAdapter((self.context, request),
name=u"comment-form") name=u"comment-form")
@ -95,8 +95,8 @@ class TestCommentForm(PloneTestCase):
# The form is submitted successfully, if all required fields are # The form is submitted successfully, if all required fields are
# filled out # filled out
request = make_request(form={'form.widgets.title': 'foo', request = make_request(form={'form.widgets.title': u'foo',
'form.widgets.text': 'bar'}) 'form.widgets.text': u'bar'})
commentForm = getMultiAdapter((self.context, request), commentForm = getMultiAdapter((self.context, request),
name=u"comment-form") name=u"comment-form")
@ -125,8 +125,8 @@ class TestCommentForm(PloneTestCase):
factory=CommentForm, factory=CommentForm,
name=u"comment-form") name=u"comment-form")
request = make_request(form={'form.widgets.title': 'foo', request = make_request(form={'form.widgets.title': u'foo',
'form.widgets.text': 'bar'}) 'form.widgets.text': u'bar'})
commentForm = getMultiAdapter((self.context, request), commentForm = getMultiAdapter((self.context, request),
name=u"comment-form") name=u"comment-form")
@ -162,8 +162,8 @@ class TestCommentForm(PloneTestCase):
factory=CommentForm, factory=CommentForm,
name=u"comment-form") name=u"comment-form")
request = make_request(form={'form.widgets.title': 'foo', request = make_request(form={'form.widgets.title': u'foo',
'form.widgets.text': 'bar'}) 'form.widgets.text': u'bar'})
commentForm = getMultiAdapter((self.context, request), commentForm = getMultiAdapter((self.context, request),
name=u"comment-form") name=u"comment-form")