diff options
| author | PJ Eby <distutils-sig@python.org> | 2008-08-21 17:56:23 +0000 |
|---|---|---|
| committer | PJ Eby <distutils-sig@python.org> | 2008-08-21 17:56:23 +0000 |
| commit | 3430324f7fcd38e9d1a8c045812e80376292788e (patch) | |
| tree | cb99f1355e6e5346834ed1be7f346b8c1fa689b8 /setuptools/tests/test_packageindex.py | |
| parent | 22071a62ddcb38c2b224ab94981e6c301d41b187 (diff) | |
| download | python-setuptools-git-3430324f7fcd38e9d1a8c045812e80376292788e.tar.gz | |
Fix for http://bugs.python.org/setuptools/issue7 (backport from trunk)
--HG--
branch : setuptools-0.6
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4065943
Diffstat (limited to 'setuptools/tests/test_packageindex.py')
| -rw-r--r-- | setuptools/tests/test_packageindex.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/setuptools/tests/test_packageindex.py b/setuptools/tests/test_packageindex.py index 2d619a08..0231eda8 100644 --- a/setuptools/tests/test_packageindex.py +++ b/setuptools/tests/test_packageindex.py @@ -17,3 +17,11 @@ class TestPackageIndex(unittest.TestCase): self.assert_(url in str(v)) else: self.assert_(isinstance(v,urllib2.HTTPError)) + + def test_url_ok(self): + index = setuptools.package_index.PackageIndex( + hosts=('www.example.com',) + ) + url = 'file:///tmp/test_package_index' + self.assert_(index.url_ok(url, True)) + |
