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 | 5f45e16bb85c831a89826565041bb38e977bad10 (patch) | |
| tree | e7adf1abdf97a5bcb198feceae3992ad75c46953 | |
| parent | 5ad26326ce0808be37a2ba8f77980f90d463d91e (diff) | |
| download | python-setuptools-bitbucket-5f45e16bb85c831a89826565041bb38e977bad10.tar.gz | |
Add test to exercise the basic functionality of _vcs_split_rev_from_url
| -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): |
