[Checkins] SVN: CMF/trunk/CMFCore/tests/test_FSPageTemplate.py -
declared source encoding
Yvo Schubbe
y.2007- at wcm-solutions.de
Tue Feb 27 06:35:48 EST 2007
Log message for revision 72871:
- declared source encoding
Changed:
U CMF/trunk/CMFCore/tests/test_FSPageTemplate.py
-=-
Modified: CMF/trunk/CMFCore/tests/test_FSPageTemplate.py
===================================================================
--- CMF/trunk/CMFCore/tests/test_FSPageTemplate.py 2007-02-27 06:34:29 UTC (rev 72870)
+++ CMF/trunk/CMFCore/tests/test_FSPageTemplate.py 2007-02-27 11:35:47 UTC (rev 72871)
@@ -1,3 +1,4 @@
+# -*- coding: iso-8859-1 -*-
##############################################################################
#
# Copyright (c) 2002 Zope Corporation and Contributors. All Rights Reserved.
@@ -96,7 +97,7 @@
script = self._makeOne('testPT3', 'testPT3.pt')
script = script.__of__(self.root)
data = script.read()
- self.assertEqual(unicode('123üöäß', 'iso-8859-15') in data, True)
+ self.failUnless(u'123üöäß' in data)
self.assertEqual(script.content_type, 'text/html')
def test_CharsetFrom2FSMetadata(self):
@@ -105,7 +106,7 @@
script = self._makeOne('testPT4', 'testPT4.pt')
script = script.__of__(self.root)
data = script.read()
- self.assertEqual(unicode('123üöäß', 'iso-8859-15') in data, True)
+ self.failUnless(u'123üöäß' in data)
self.assertEqual(script.content_type, 'text/html')
def test_BadCall( self ):
More information about the Checkins
mailing list