PyXR

c:\python24\lib \ test \ test_str.py



0001 import unittest
0002 from test import test_support, string_tests
0003 
0004 
0005 class StrTest(
0006     string_tests.CommonTest,
0007     string_tests.MixinStrUnicodeUserStringTest,
0008     string_tests.MixinStrUserStringTest,
0009     string_tests.MixinStrUnicodeTest,
0010     ):
0011 
0012     type2test = str
0013 
0014     # We don't need to propagate to str
0015     def fixtype(self, obj):
0016         return obj
0017 
0018     def test_formatting(self):
0019         string_tests.MixinStrUnicodeUserStringTest.test_formatting(self)
0020         self.assertRaises(OverflowError, '%c'.__mod__, 0x1234)
0021 
0022 def test_main():
0023     test_support.run_unittest(StrTest)
0024 
0025 if __name__ == "__main__":
0026     test_main()
0027 

Generated by PyXR 0.9.4
SourceForge.net Logo