Commit 7d0d8a87 authored by Jason R. Coombs's avatar Jason R. Coombs

Add test to exercise the basic functionality of _vcs_split_rev_from_url

parent 3d5510a0
......@@ -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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment