[Python-checkins] python/nondist/sandbox/setuptools/setuptools/tests test_resources.py, 1.12, 1.13
pje@users.sourceforge.net
pje at users.sourceforge.net
Sun Jun 5 23:33:53 CEST 2005
Update of /cvsroot/python/python/nondist/sandbox/setuptools/setuptools/tests
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11175/setuptools/tests
Modified Files:
test_resources.py
Log Message:
Implement PyPI screenscraping for EasyInstall. Fix a bug in requirement
version checking. Document new options for screen scraping.
Index: test_resources.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/setuptools/setuptools/tests/test_resources.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- test_resources.py 5 Jun 2005 18:59:37 -0000 1.12
+++ test_resources.py 5 Jun 2005 21:33:51 -0000 1.13
@@ -258,12 +258,19 @@
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)
More information about the Python-checkins
mailing list