0001 #! -*- coding: koi8-r -*- 0002 # This file is marked as binary in the CVS, to prevent MacCVS from recoding it. 0003 0004 import unittest 0005 from test import test_support 0006 0007 class PEP263Test(unittest.TestCase): 0008 0009 def test_pep263(self): 0010 self.assertEqual( 0011 u"ðÉÔÏÎ".encode("utf-8"), 0012 '\xd0\x9f\xd0\xb8\xd1\x82\xd0\xbe\xd0\xbd' 0013 ) 0014 self.assertEqual( 0015 u"\ð".encode("utf-8"), 0016 '\\\xd0\x9f' 0017 ) 0018 0019 def test_main(): 0020 test_support.run_unittest(PEP263Test) 0021 0022 if __name__=="__main__": 0023 test_main() 0024
Generated by PyXR 0.9.4