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

This commit is contained in:
Martin v. Löwis 2004-03-24 16:48:24 +00:00
parent aaeffaf01e
commit a1dde13389
1 changed files with 6 additions and 1 deletions

View File

@ -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
)