summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_stringprep.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-05-02 19:09:54 (GMT)
committerGuido van Rossum <guido@python.org>2007-05-02 19:09:54 (GMT)
commitef87d6ed94780fe00250a551031023aeb2898365 (patch)
tree1f8989aaaec7ec5f8b2f26498317f2022bf85531 /Lib/test/test_stringprep.py
parent572dbf8f1320c0b34b9c786e5c30ba4a4b61b292 (diff)
downloadcpython-ef87d6ed94780fe00250a551031023aeb2898365.zip
cpython-ef87d6ed94780fe00250a551031023aeb2898365.tar.gz
cpython-ef87d6ed94780fe00250a551031023aeb2898365.tar.bz2
Rip out all the u"..." literals and calls to unicode().
Diffstat (limited to 'Lib/test/test_stringprep.py')
-rw-r--r--Lib/test/test_stringprep.py76
1 files changed, 38 insertions, 38 deletions
diff --git a/Lib/test/test_stringprep.py b/Lib/test/test_stringprep.py
index 60425dd..0452790 100644
--- a/Lib/test/test_stringprep.py
+++ b/Lib/test/test_stringprep.py
@@ -8,66 +8,66 @@ from stringprep import *
class StringprepTests(unittest.TestCase):
def test(self):
- self.failUnless(in_table_a1(u"\u0221"))
- self.failIf(in_table_a1(u"\u0222"))
+ self.failUnless(in_table_a1("\u0221"))
+ self.failIf(in_table_a1("\u0222"))
- self.failUnless(in_table_b1(u"\u00ad"))
- self.failIf(in_table_b1(u"\u00ae"))
+ self.failUnless(in_table_b1("\u00ad"))
+ self.failIf(in_table_b1("\u00ae"))
- self.failUnless(map_table_b2(u"\u0041"), u"\u0061")
- self.failUnless(map_table_b2(u"\u0061"), u"\u0061")
+ self.failUnless(map_table_b2("\u0041"), "\u0061")
+ self.failUnless(map_table_b2("\u0061"), "\u0061")
- self.failUnless(map_table_b3(u"\u0041"), u"\u0061")
- self.failUnless(map_table_b3(u"\u0061"), u"\u0061")
+ self.failUnless(map_table_b3("\u0041"), "\u0061")
+ self.failUnless(map_table_b3("\u0061"), "\u0061")
- self.failUnless(in_table_c11(u"\u0020"))
- self.failIf(in_table_c11(u"\u0021"))
+ self.failUnless(in_table_c11("\u0020"))
+ self.failIf(in_table_c11("\u0021"))
- self.failUnless(in_table_c12(u"\u00a0"))
- self.failIf(in_table_c12(u"\u00a1"))
+ self.failUnless(in_table_c12("\u00a0"))
+ self.failIf(in_table_c12("\u00a1"))
- self.failUnless(in_table_c12(u"\u00a0"))
- self.failIf(in_table_c12(u"\u00a1"))
+ self.failUnless(in_table_c12("\u00a0"))
+ self.failIf(in_table_c12("\u00a1"))
- self.failUnless(in_table_c11_c12(u"\u00a0"))
- self.failIf(in_table_c11_c12(u"\u00a1"))
+ self.failUnless(in_table_c11_c12("\u00a0"))
+ self.failIf(in_table_c11_c12("\u00a1"))
- self.failUnless(in_table_c21(u"\u001f"))
- self.failIf(in_table_c21(u"\u0020"))
+ self.failUnless(in_table_c21("\u001f"))
+ self.failIf(in_table_c21("\u0020"))
- self.failUnless(in_table_c22(u"\u009f"))
- self.failIf(in_table_c22(u"\u00a0"))
+ self.failUnless(in_table_c22("\u009f"))
+ self.failIf(in_table_c22("\u00a0"))
- self.failUnless(in_table_c21_c22(u"\u009f"))
- self.failIf(in_table_c21_c22(u"\u00a0"))
+ self.failUnless(in_table_c21_c22("\u009f"))
+ self.failIf(in_table_c21_c22("\u00a0"))
- self.failUnless(in_table_c3(u"\ue000"))
- self.failIf(in_table_c3(u"\uf900"))
+ self.failUnless(in_table_c3("\ue000"))
+ self.failIf(in_table_c3("\uf900"))
- self.failUnless(in_table_c4(u"\uffff"))
- self.failIf(in_table_c4(u"\u0000"))
+ self.failUnless(in_table_c4("\uffff"))
+ self.failIf(in_table_c4("\u0000"))
- self.failUnless(in_table_c5(u"\ud800"))
- self.failIf(in_table_c5(u"\ud7ff"))
+ self.failUnless(in_table_c5("\ud800"))
+ self.failIf(in_table_c5("\ud7ff"))
- self.failUnless(in_table_c6(u"\ufff9"))
- self.failIf(in_table_c6(u"\ufffe"))
+ self.failUnless(in_table_c6("\ufff9"))
+ self.failIf(in_table_c6("\ufffe"))
- self.failUnless(in_table_c7(u"\u2ff0"))
- self.failIf(in_table_c7(u"\u2ffc"))
+ self.failUnless(in_table_c7("\u2ff0"))
+ self.failIf(in_table_c7("\u2ffc"))
- self.failUnless(in_table_c8(u"\u0340"))
- self.failIf(in_table_c8(u"\u0342"))
+ self.failUnless(in_table_c8("\u0340"))
+ self.failIf(in_table_c8("\u0342"))
# C.9 is not in the bmp
# self.failUnless(in_table_c9(u"\U000E0001"))
# self.failIf(in_table_c8(u"\U000E0002"))
- self.failUnless(in_table_d1(u"\u05be"))
- self.failIf(in_table_d1(u"\u05bf"))
+ self.failUnless(in_table_d1("\u05be"))
+ self.failIf(in_table_d1("\u05bf"))
- self.failUnless(in_table_d2(u"\u0041"))
- self.failIf(in_table_d2(u"\u0040"))
+ self.failUnless(in_table_d2("\u0041"))
+ self.failIf(in_table_d2("\u0040"))
# This would generate a hash of all predicates. However, running
# it is quite expensive, and only serves to detect changes in the