Trigger failure for objects with unicode titles in string

svn path=/plone.app.discussion/branches/1.x/; revision=47997
This commit is contained in:
Patrick Gerken 2011-03-09 03:07:29 +00:00
parent 65aab05d1b
commit 39d692f9b8

View File

@ -1,3 +1,5 @@
# coding=utf-8
import unittest import unittest
from Acquisition import aq_base from Acquisition import aq_base
@ -195,6 +197,9 @@ class TestModeratorNotificationUnit(PloneTestCase):
self.loginAsPortalOwner() self.loginAsPortalOwner()
self.portal.invokeFactory('Document', 'doc1') self.portal.invokeFactory('Document', 'doc1')
self.portal_discussion = self.portal.portal_discussion self.portal_discussion = self.portal.portal_discussion
# Archetypes content types store data as utf-8 encoded strings
# The missing u in front of a string is therefor not missing
self.portal.doc1.title = 'Kölle Alaaf' # What is "Fasching"?
self.conversation = IConversation(self.portal.doc1) self.conversation = IConversation(self.portal.doc1)
def beforeTearDown(self): def beforeTearDown(self):