Add test case for unicode(somestring, "idna").
This commit is contained in:
parent
aaeffaf01e
commit
a1dde13389
@ -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
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user