diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2004-03-24 16:48:24 +0000 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2004-03-24 16:48:24 +0000 |
commit | aafa9179f5db7388f85612d73046af6c19bd628e (patch) | |
tree | cbc9197c0665404029b0b0b01b9e52e2dfbd42cc /Lib/test/test_codecs.py | |
parent | 8690acbed50ade0be2e7fadd552d6ce1bd9c4bf7 (diff) | |
download | cpython-aafa9179f5db7388f85612d73046af6c19bd628e.tar.gz |
Add test case for unicode(somestring, "idna").
Diffstat (limited to 'Lib/test/test_codecs.py')
-rw-r--r-- | Lib/test/test_codecs.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/test/test_codecs.py b/Lib/test/test_codecs.py index 33a62aad9b..51e0e2c395 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 ) |