summaryrefslogtreecommitdiff
path: root/tests/test_install_lib.py
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
commitd42774082d0532c78405d5b46f7d9896efcfb7a6 (patch)
treefc5cfae03f8d3596f26841f15eb3d989933e4d72 /tests/test_install_lib.py
parent836436ecd7283a03864110e8aa71505605eb346b (diff)
downloadpython-setuptools-git-d42774082d0532c78405d5b46f7d9896efcfb7a6.tar.gz
convert old fail* assertions to assert*
Diffstat (limited to 'tests/test_install_lib.py')
-rw-r--r--tests/test_install_lib.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_install_lib.py b/tests/test_install_lib.py
index d7681668..793b95ca 100644
--- a/tests/test_install_lib.py
+++ b/tests/test_install_lib.py
@@ -39,8 +39,8 @@ class InstallLibTestCase(support.TempdirManager,
f = os.path.join(pkg_dir, 'foo.py')
self.write_file(f, '# python file')
cmd.byte_compile([f])
- self.assert_(os.path.exists(os.path.join(pkg_dir, 'foo.pyc')))
- self.assert_(os.path.exists(os.path.join(pkg_dir, 'foo.pyo')))
+ self.assertTrue(os.path.exists(os.path.join(pkg_dir, 'foo.pyc')))
+ self.assertTrue(os.path.exists(os.path.join(pkg_dir, 'foo.pyo')))
def test_get_outputs(self):
pkg_dir, dist = self.create_dist()
@@ -57,7 +57,7 @@ class InstallLibTestCase(support.TempdirManager,
cmd.distribution.script_name = 'setup.py'
# get_output should return 4 elements
- self.assert_(len(cmd.get_outputs()) >= 2)
+ self.assertTrue(len(cmd.get_outputs()) >= 2)
def test_get_inputs(self):
pkg_dir, dist = self.create_dist()