aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-06-30 23:06:06 +0000
committerBenjamin Peterson <benjamin@python.org>2009-06-30 23:06:06 +0000
commitc9c0f201fed21efcf669dbbf5f923eaf0eeb1db9 (patch)
tree6350dab0b481e6de307dc4e043c6230f463a9ca7 /Lib/test/test_uuid.py
parentMerged revisions 73710 via svnmerge from (diff)
downloadcpython-c9c0f201fed21efcf669dbbf5f923eaf0eeb1db9.tar.gz
cpython-c9c0f201fed21efcf669dbbf5f923eaf0eeb1db9.tar.bz2
cpython-c9c0f201fed21efcf669dbbf5f923eaf0eeb1db9.zip
convert old fail* assertions to assert*
Diffstat (limited to 'Lib/test/test_uuid.py')
-rw-r--r--Lib/test/test_uuid.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_uuid.py b/Lib/test/test_uuid.py
index cf9ea84e386..b749abce39d 100644
--- a/Lib/test/test_uuid.py
+++ b/Lib/test/test_uuid.py
@@ -293,8 +293,8 @@ class TestUUID(TestCase):
self.assertEqual(universal_local_bit, 0, message)
self.assertNotEqual(node, 0, message)
self.assertNotEqual(node, 0xffffffffffff, message)
- self.assert_(0 <= node, message)
- self.assert_(node < (1 << 48), message)
+ self.assertTrue(0 <= node, message)
+ self.assertTrue(node < (1 << 48), message)
TestUUID.source2node[source] = node
if TestUUID.last_node:
@@ -335,8 +335,8 @@ class TestUUID(TestCase):
def test_random_getnode(self):
node = uuid._random_getnode()
- self.assert_(0 <= node)
- self.assert_(node < (1 <<48))
+ self.assertTrue(0 <= node)
+ self.assertTrue(node < (1 <<48))
def test_unixdll_getnode(self):
import sys