[Zope-Checkins]
SVN: Zope/trunk/lib/python/ZPublisher/tests/testHTTPResponse.py
improved tests
Andreas Jung
andreas at andreas-jung.com
Thu Dec 22 06:04:30 EST 2005
Log message for revision 40975:
improved tests
Changed:
U Zope/trunk/lib/python/ZPublisher/tests/testHTTPResponse.py
-=-
Modified: Zope/trunk/lib/python/ZPublisher/tests/testHTTPResponse.py
===================================================================
--- Zope/trunk/lib/python/ZPublisher/tests/testHTTPResponse.py 2005-12-22 08:52:23 UTC (rev 40974)
+++ Zope/trunk/lib/python/ZPublisher/tests/testHTTPResponse.py 2005-12-22 11:04:29 UTC (rev 40975)
@@ -101,9 +101,9 @@
def test_XMLEncodingRecoding(self):
xml = u'<?xml version="1.0" encoding="iso-8859-15" ?>\n<foo><bar/></foo>'
response = self._makeOne(body=xml, headers={'content-type': 'application/foo; charset=utf-8'})
- self.assertEqual('encoding="utf-8"' in response.body, True)
+ self.assertEqual(xml.replace('iso-8859-15', 'utf-8')==response.body, True)
response = self._makeOne(body=xml, headers={'content-type': 'application/foo; charset=iso-8859-15'})
- self.assertEqual('encoding="iso-8859-15"' in response.body, True)
+ self.assertEqual(xml==response.body, True)
def test_suite():
More information about the Zope-Checkins
mailing list