[Zope-CVS] CVS: Packages/zpkgtools/zpkgtools/tests -
test_cvsloader.py:1.8
Fred L. Drake, Jr.
fred at zope.com
Fri Mar 19 15:22:45 EST 2004
Update of /cvs-repository/Packages/zpkgtools/zpkgtools/tests
In directory cvs.zope.org:/tmp/cvs-serv10775/zpkgtools/tests
Modified Files:
test_cvsloader.py
Log Message:
make the CvsLoader re-use prior loads of the same resource
=== Packages/zpkgtools/zpkgtools/tests/test_cvsloader.py 1.7 => 1.8 ===
--- Packages/zpkgtools/zpkgtools/tests/test_cvsloader.py:1.7 Wed Mar 10 13:57:19 2004
+++ Packages/zpkgtools/zpkgtools/tests/test_cvsloader.py Fri Mar 19 15:22:44 2004
@@ -423,6 +423,20 @@
self.assert_(not os.path.exists(self.workdir),
"working directory must not exist after a failed run")
+ def test_reuse_loaded_resource(self):
+ url = "cvs://cvs.example.org/cvsroot:module/path"
+ loader = self.createLoader(None)
+ first = loader.load(url)
+ second = loader.load(url)
+ self.assertEqual(first, second)
+
+ def test_no_reuse_loaded_resource_different_tags(self):
+ url = "cvs://cvs.example.org/cvsroot:module/path"
+ loader = self.createLoader(None)
+ first = loader.load(url)
+ second = loader.load(url + ":TAG")
+ self.assertNotEqual(first, second)
+
def test_isFileResource_file(self):
self.check_isFileResource("/cvsroot/module/FOO,v\n",
True)
More information about the Zope-CVS
mailing list