diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2013-07-24 23:10:05 +0200 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-07-24 23:10:05 +0200 |
commit | 7d0d8a87e47b174e006760cc5d938c862766af60 (patch) | |
tree | 92b1f72243f462c51a1285137096a2d76d1d9d56 /setuptools/tests/test_packageindex.py | |
parent | 3d5510a01906bebf369cde304706ce5f52117afe (diff) | |
download | external_python_setuptools-7d0d8a87e47b174e006760cc5d938c862766af60.tar.gz external_python_setuptools-7d0d8a87e47b174e006760cc5d938c862766af60.tar.bz2 external_python_setuptools-7d0d8a87e47b174e006760cc5d938c862766af60.zip |
Add test to exercise the basic functionality of _vcs_split_rev_from_url
Diffstat (limited to 'setuptools/tests/test_packageindex.py')
-rw-r--r-- | setuptools/tests/test_packageindex.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/setuptools/tests/test_packageindex.py b/setuptools/tests/test_packageindex.py index 7f5dc585..08969b7e 100644 --- a/setuptools/tests/test_packageindex.py +++ b/setuptools/tests/test_packageindex.py @@ -142,6 +142,15 @@ class TestPackageIndex(unittest.TestCase): self.assertEqual(setuptools.package_index.parse_bdist_wininst( 'reportlab-2.5.win-amd64.exe'), ('reportlab-2.5', None, 'win-amd64')) + def test__vcs_split_rev_from_url(self): + """ + Test the basic usage of _vcs_split_rev_from_url + """ + vsrfu = setuptools.package_index.PackageIndex._vcs_split_rev_from_url + url, rev = vsrfu('https://example.com/bar@2995') + self.assertEqual(url, 'https://example.com/bar') + self.assertEqual(rev, '2995') + class TestContentCheckers(unittest.TestCase): def test_md5(self): |