summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_unicodedata.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-06-30 23:06:06 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-06-30 23:06:06 (GMT)
commitc9c0f201fed21efcf669dbbf5f923eaf0eeb1db9 (patch)
tree6350dab0b481e6de307dc4e043c6230f463a9ca7 /Lib/test/test_unicodedata.py
parent98d23f2e065713ccfbc07d9a0b65f737a212bfb5 (diff)
downloadcpython-c9c0f201fed21efcf669dbbf5f923eaf0eeb1db9.zip
cpython-c9c0f201fed21efcf669dbbf5f923eaf0eeb1db9.tar.gz
cpython-c9c0f201fed21efcf669dbbf5f923eaf0eeb1db9.tar.bz2
convert old fail* assertions to assert*
Diffstat (limited to 'Lib/test/test_unicodedata.py')
-rw-r--r--Lib/test/test_unicodedata.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/Lib/test/test_unicodedata.py b/Lib/test/test_unicodedata.py
index 285a352..a658d7b 100644
--- a/Lib/test/test_unicodedata.py
+++ b/Lib/test/test_unicodedata.py
@@ -232,7 +232,7 @@ class UnicodeMiscTest(UnicodeDatabaseTest):
if dec != -1:
self.assertEqual(dec, self.db.numeric(c))
count += 1
- self.assert_(count >= 10) # should have tested at least the ASCII digits
+ self.assertTrue(count >= 10) # should have tested at least the ASCII digits
def test_digit_numeric_consistent(self):
# Test that digit and numeric are consistent,
@@ -245,7 +245,7 @@ class UnicodeMiscTest(UnicodeDatabaseTest):
if dec != -1:
self.assertEqual(dec, self.db.numeric(c))
count += 1
- self.assert_(count >= 10) # should have tested at least the ASCII digits
+ self.assertTrue(count >= 10) # should have tested at least the ASCII digits
def test_bug_1704793(self):
self.assertEquals(self.db.lookup("GOTHIC LETTER FAIHU"), '\U00010346')
@@ -253,13 +253,13 @@ class UnicodeMiscTest(UnicodeDatabaseTest):
def test_ucd_510(self):
import unicodedata
# In UCD 5.1.0, a mirrored property changed wrt. UCD 3.2.0
- self.assert_(unicodedata.mirrored("\u0f3a"))
- self.assert_(not unicodedata.ucd_3_2_0.mirrored("\u0f3a"))
+ self.assertTrue(unicodedata.mirrored("\u0f3a"))
+ self.assertTrue(not unicodedata.ucd_3_2_0.mirrored("\u0f3a"))
# Also, we now have two ways of representing
# the upper-case mapping: as delta, or as absolute value
- self.assert_("a".upper()=='A')
- self.assert_("\u1d79".upper()=='\ua77d')
- self.assert_(".".upper()=='.')
+ self.assertTrue("a".upper()=='A')
+ self.assertTrue("\u1d79".upper()=='\ua77d')
+ self.assertTrue(".".upper()=='.')
def test_bug_5828(self):
self.assertEqual("\u1d79".lower(), "\u1d79")