[Python-checkins] python/dist/src/Lib/test test_codecs.py,1.9,1.10

loewis at users.sourceforge.net loewis at users.sourceforge.net
Wed Mar 24 11:48:26 EST 2004


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3366/Lib/test

Modified Files:
	test_codecs.py 
Log Message:
Add test case for unicode(somestring, "idna").


Index: test_codecs.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_codecs.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** test_codecs.py	1 May 2003 17:45:36 -0000	1.9
--- test_codecs.py	24 Mar 2004 16:48:24 -0000	1.10
***************
*** 333,336 ****
--- 333,340 ----
                      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(
***************
*** 339,343 ****
          RecodingTest,
          PunycodeTest,
!         NameprepTest
      )
  
--- 343,348 ----
          RecodingTest,
          PunycodeTest,
!         NameprepTest,
! 	CodecTest
      )
  




More information about the Python-checkins mailing list