Trigger failure for objects with unicode titles in string

svn path=/plone.app.discussion/trunk/; revision=47989
This commit is contained in:
Patrick Gerken 2011-03-08 20:15:21 +00:00
parent b2f8395dba
commit b6d406d298

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):