Kaydet (Commit) b27ddc72 authored tarafından Antoine Pitrou's avatar Antoine Pitrou

Merged revisions 85861 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r85861 | antoine.pitrou | 2010-10-27 20:52:48 +0200 (mer., 27 oct. 2010) | 3 lines

  Recode modules from latin-1 to utf-8
........
üst 7f08102b
# regression test for SAX 2.0 -*- coding: iso-8859-1 -*-
# regression test for SAX 2.0 -*- coding: utf-8 -*-
# $Id$
from xml.sax import make_parser, ContentHandler, \
......@@ -109,7 +109,7 @@ class SaxutilsTest(unittest.TestCase):
"<Donald Duck & Co>")
def test_escape_extra(self):
self.assertEquals(escape("Hei p deg", {"" : "å"}),
self.assertEquals(escape("Hei på deg", {" : "å"}),
"Hei på deg")
# ===== unescape
......@@ -121,7 +121,7 @@ class SaxutilsTest(unittest.TestCase):
"<Donald Duck & Co>")
def test_unescape_extra(self):
self.assertEquals(unescape("Hei p deg", {"" : "&aring;"}),
self.assertEquals(unescape("Hei på deg", {" : "&aring;"}),
"Hei p&aring; deg")
def test_unescape_amp_extra(self):
......
# -*- coding: iso-8859-1 -*-
""" Test script for the Unicode implementation.
Written by Marc-Andre Lemburg (mal@lemburg.com).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment