aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_resources.py
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2005-06-05 21:33:51 +0000
committerPJ Eby <distutils-sig@python.org>2005-06-05 21:33:51 +0000
commite6572cb2a69f14590366d99cee809c79658b95c6 (patch)
treec65587f916dd8ad9369788a658bd60365f66214e /setuptools/tests/test_resources.py
parent0c9e886999bb42cf825054778b1664e41f8164b4 (diff)
downloadexternal_python_setuptools-e6572cb2a69f14590366d99cee809c79658b95c6.tar.gz
external_python_setuptools-e6572cb2a69f14590366d99cee809c79658b95c6.tar.bz2
external_python_setuptools-e6572cb2a69f14590366d99cee809c79658b95c6.zip
Implement PyPI screenscraping for EasyInstall. Fix a bug in requirement
version checking. Document new options for screen scraping. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041041
Diffstat (limited to 'setuptools/tests/test_resources.py')
-rw-r--r--setuptools/tests/test_resources.py19
1 files changed, 13 insertions, 6 deletions
diff --git a/setuptools/tests/test_resources.py b/setuptools/tests/test_resources.py
index 88b5f889..91199f47 100644
--- a/setuptools/tests/test_resources.py
+++ b/setuptools/tests/test_resources.py
@@ -258,12 +258,19 @@ class RequirementsTests(TestCase):
ImmutableSet(["foo","bar"])))
)
-
-
-
-
-
-
+ def testVersionEquality(self):
+ r1 = Requirement.parse("setuptools==0.3a2")
+ r2 = Requirement.parse("setuptools!=0.3a4")
+ d = Distribution.from_filename
+
+ self.failIf(d("setuptools-0.3a4.egg") in r1)
+ self.failIf(d("setuptools-0.3a1.egg") in r1)
+ self.failIf(d("setuptools-0.3a4.egg") in r2)
+
+ self.failUnless(d("setuptools-0.3a2.egg") in r1)
+ self.failUnless(d("setuptools-0.3a2.egg") in r2)
+ self.failUnless(d("setuptools-0.3a3.egg") in r2)
+ self.failUnless(d("setuptools-0.3a5.egg") in r2)