Commit a1dde133 authored by Martin v. Löwis's avatar Martin v. Löwis

Add test case for unicode(somestring, "idna").

parent aaeffaf0
...@@ -332,13 +332,18 @@ class NameprepTest(unittest.TestCase): ...@@ -332,13 +332,18 @@ class NameprepTest(unittest.TestCase):
except Exception,e: except Exception,e:
raise test_support.TestFailed("Test 3.%d: %s" % (pos+1, str(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(): def test_main():
test_support.run_unittest( test_support.run_unittest(
UTF16Test, UTF16Test,
EscapeDecodeTest, EscapeDecodeTest,
RecodingTest, RecodingTest,
PunycodeTest, PunycodeTest,
NameprepTest NameprepTest,
CodecTest
) )
......
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