diff options
author | agroszer <none@none> | 2011-04-15 10:49:49 +0200 |
---|---|---|
committer | agroszer <none@none> | 2011-04-15 10:49:49 +0200 |
commit | 1509fe5874ad7155482d71b1b922bfdeb522ab58 (patch) | |
tree | 54dfccd2bfd87f6e66088849be9eae5edc242998 /setuptools/tests/test_packageindex.py | |
parent | 119e1f717238083a18d973f988114789c5b3e41b (diff) | |
download | external_python_setuptools-1509fe5874ad7155482d71b1b922bfdeb522ab58.tar.gz external_python_setuptools-1509fe5874ad7155482d71b1b922bfdeb522ab58.tar.bz2 external_python_setuptools-1509fe5874ad7155482d71b1b922bfdeb522ab58.zip |
Fixing #200
--HG--
branch : distribute
extra : rebase_source : 4446e76a0bcf2e968abce2020569aecbaab1df01
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 42cb8c1e..00d44ca6 100644 --- a/setuptools/tests/test_packageindex.py +++ b/setuptools/tests/test_packageindex.py @@ -108,5 +108,14 @@ class TestPackageIndex(unittest.TestCase): # the link should be from the index self.assert_('correct_md5' in pi['foobar'][0].location) + def test_parse_bdist_wininst(self): + self.assertEqual(setuptools.package_index.parse_bdist_wininst( + 'reportlab-2.5.win32-py2.4.exe'), ('reportlab-2.5', '2.4', 'win32')) + self.assertEqual(setuptools.package_index.parse_bdist_wininst( + 'reportlab-2.5.win32.exe'), ('reportlab-2.5', None, 'win32')) + self.assertEqual(setuptools.package_index.parse_bdist_wininst( + 'reportlab-2.5.win-amd64-py2.7.exe'), ('reportlab-2.5', '2.7', 'win-amd64')) + self.assertEqual(setuptools.package_index.parse_bdist_wininst( + 'reportlab-2.5.win-amd64.exe'), ('reportlab-2.5', None, 'win-amd64')) |