diff options
| author | Georg Brandl <georg@python.org> | 2009-08-13 08:51:18 +0000 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2009-08-13 08:51:18 +0000 |
| commit | 8c7f12ea567dc59e1031dbffdda12247dfce0b9e (patch) | |
| tree | 540c4dfc8db2994fc06d77a141d4f08075a7acc0 /tests/test_install.py | |
| parent | 576fc43ebe6bd3b6f7707d8c8e9ba92cc9ed112b (diff) | |
| download | python-setuptools-git-8c7f12ea567dc59e1031dbffdda12247dfce0b9e.tar.gz | |
Merged revisions 73715 via svnmerge from
svn+ssh://svn.python.org/python/branches/py3k
........
r73715 | benjamin.peterson | 2009-07-01 01:06:06 +0200 (Mi, 01 Jul 2009) | 1 line
convert old fail* assertions to assert*
........
Diffstat (limited to 'tests/test_install.py')
| -rw-r--r-- | tests/test_install.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/test_install.py b/tests/test_install.py index 8d7e9722..d0ad5ce1 100644 --- a/tests/test_install.py +++ b/tests/test_install.py @@ -88,7 +88,7 @@ class InstallTestCase(support.TempdirManager, def _test_user_site(self): for key in ('nt_user', 'unix_user', 'os2_home'): - self.assert_(key in INSTALL_SCHEMES) + self.assertTrue(key in INSTALL_SCHEMES) dist = Distribution({'name': 'xx'}) cmd = install(dist) @@ -96,24 +96,24 @@ class InstallTestCase(support.TempdirManager, # making sure the user option is there options = [name for name, short, lable in cmd.user_options] - self.assert_('user' in options) + self.assertTrue('user' in options) # setting a value cmd.user = 1 # user base and site shouldn't be created yet - self.assert_(not os.path.exists(self.user_base)) - self.assert_(not os.path.exists(self.user_site)) + self.assertTrue(not os.path.exists(self.user_base)) + self.assertTrue(not os.path.exists(self.user_site)) # let's run finalize cmd.ensure_finalized() # now they should - self.assert_(os.path.exists(self.user_base)) - self.assert_(os.path.exists(self.user_site)) + self.assertTrue(os.path.exists(self.user_base)) + self.assertTrue(os.path.exists(self.user_site)) - self.assert_('userbase' in cmd.config_vars) - self.assert_('usersite' in cmd.config_vars) + self.assertTrue('userbase' in cmd.config_vars) + self.assertTrue('usersite' in cmd.config_vars) def test_handle_extra_path(self): dist = Distribution({'name': 'xx', 'extra_path': 'path,dirs'}) |
