[KoCo-CVS] [Commit] KoreanCodecs/test test_cp949.py test_mackorean.py
Brought to you by:
perky
From: Hye-Shik C. <pe...@us...> - 2003-01-10 04:29:37
|
perky 03/01/09 20:29:35 Modified: test test_cp949.py test_mackorean.py Log: Use self.encoding instead of hardcoded encoding name. Revision Changes Path 1.10 +3 -3 KoreanCodecs/test/test_cp949.py Index: test_cp949.py =================================================================== RCS file: /cvsroot/koco/KoreanCodecs/test/test_cp949.py,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- test_cp949.py 10 Jan 2003 04:26:43 -0000 1.9 +++ test_cp949.py 10 Jan 2003 04:29:34 -0000 1.10 @@ -16,7 +16,7 @@ # along with KoreanCodecs; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # -# $Id: test_cp949.py,v 1.9 2003/01/10 04:26:43 perky Exp $ +# $Id: test_cp949.py,v 1.10 2003/01/10 04:29:34 perky Exp $ # import CodecTestBase @@ -62,8 +62,8 @@ continue unich = unichrs(data[1]) - self.assertEqual(unich.encode('cp949'), cp949ch) - self.assertEqual(unicode(cp949ch, 'cp949'), unich) + self.assertEqual(unich.encode(self.encoding), cp949ch) + self.assertEqual(unicode(cp949ch, self.encoding), unich) class TestCP949_CExtension(Shield.TestCP949Base): encoding = 'korean.c.cp949' 1.3 +3 -3 KoreanCodecs/test/test_mackorean.py Index: test_mackorean.py =================================================================== RCS file: /cvsroot/koco/KoreanCodecs/test/test_mackorean.py,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- test_mackorean.py 10 Jan 2003 04:26:43 -0000 1.2 +++ test_mackorean.py 10 Jan 2003 04:29:34 -0000 1.3 @@ -16,7 +16,7 @@ # along with KoreanCodecs; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # -# $Id: test_mackorean.py,v 1.2 2003/01/10 04:26:43 perky Exp $ +# $Id: test_mackorean.py,v 1.3 2003/01/10 04:29:34 perky Exp $ # import CodecTestBase @@ -65,8 +65,8 @@ continue unich = unichrs(data[1]) - self.assertEqual(unich.encode('mackorean'), macch) - self.assertEqual(unicode(macch, 'mackorean'), unich) + self.assertEqual(unich.encode(self.encoding), macch) + self.assertEqual(unicode(macch, self.encoding), unich) #class TestMacKorean_CExtension(Shield.TestMacKorean_Base): # encoding = 'korean.c.mackorean' |