summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_codecs.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2004-03-24 16:48:24 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2004-03-24 16:48:24 (GMT)
commita1dde13389cf47ac626394796740925504e3e272 (patch)
tree577aee615a1972dfea93d485525e614da70e4954 /Lib/test/test_codecs.py
parentaaeffaf01e385d9a510f607b0b101ae6ba7dba5b (diff)
downloadcpython-a1dde13389cf47ac626394796740925504e3e272.zip
cpython-a1dde13389cf47ac626394796740925504e3e272.tar.gz
cpython-a1dde13389cf47ac626394796740925504e3e272.tar.bz2
Add test case for unicode(somestring, "idna").
Diffstat (limited to 'Lib/test/test_codecs.py')
-rw-r--r--Lib/test/test_codecs.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/test/test_codecs.py b/Lib/test/test_codecs.py
index 33a62aa..51e0e2c 100644
--- a/Lib/test/test_codecs.py
+++ b/Lib/test/test_codecs.py
@@ -332,13 +332,18 @@ class NameprepTest(unittest.TestCase):
except Exception,e:
raise test_support.TestFailed("Test 3.%d: %s" % (pos+1, str(e)))
+class CodecTest(unittest.TestCase):
+ def test_builtin(self):
+ self.assertEquals(unicode("python.org", "idna"), u"python.org")
+
def test_main():
test_support.run_unittest(
UTF16Test,
EscapeDecodeTest,
RecodingTest,
PunycodeTest,
- NameprepTest
+ NameprepTest,
+ CodecTest
)