[Zope-CVS] CVS: Packages/zpkgtools/zpkgtools/tests - test_locationmap.py:1.8

Fred L. Drake, Jr. fred at zope.com
Fri Jun 11 16:22:47 EDT 2004


Update of /cvs-repository/Packages/zpkgtools/zpkgtools/tests
In directory cvs.zope.org:/tmp/cvs-serv23292/zpkgtools/tests

Modified Files:
	test_locationmap.py 
Log Message:
make sure Subversion URLs do not loose their "template-ness" when combined
with wildcarding


=== Packages/zpkgtools/zpkgtools/tests/test_locationmap.py 1.7 => 1.8 ===
--- Packages/zpkgtools/zpkgtools/tests/test_locationmap.py:1.7	Tue Jun  8 23:07:04 2004
+++ Packages/zpkgtools/zpkgtools/tests/test_locationmap.py	Fri Jun 11 16:22:46 2004
@@ -188,6 +188,12 @@
         self.check_error("*                         some/path \n")
         self.check_error(".*                        some/path \n")
 
+    def test_wildcards_with_subversion_tags(self):
+        sio = StringIO("foo.* svn://svn.example.org/proj/tags/*/path\n")
+        map = locationmap.load(sio)
+        eq = self.assertEqual
+        eq(map["foo.bar"], "svn://svn.example.org/proj/tags/*/path/bar")
+
 
 class CollectingHandler(logging.StreamHandler):
     """Log handler that simply collects emitted warning records."""




More information about the Zope-CVS mailing list