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

Fred L. Drake, Jr. fred at zope.com
Thu Jun 3 23:50:33 EDT 2004


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

Modified Files:
	test_locationmap.py 
Log Message:
- clarify an exception message
- make sure Subversion URLs using the /tags/*/ "templating" feature
  don't lose their template-ness when making a round trip through the
  parsed URL classes
- only make a round trip through the parsed URL classes when necessary


=== Packages/zpkgtools/zpkgtools/tests/test_locationmap.py 1.5 => 1.6 ===
--- Packages/zpkgtools/zpkgtools/tests/test_locationmap.py:1.5	Sun May 16 12:45:21 2004
+++ Packages/zpkgtools/zpkgtools/tests/test_locationmap.py	Thu Jun  3 23:50:31 2004
@@ -59,6 +59,12 @@
 
 class LoadTestCase(unittest.TestCase):
 
+    def test_subversion_urls_dont_lose_templateness(self):
+        url = "svn://svn.example.org/svnroot/proj/tags/*/file.txt"
+        sio = StringIO("pkg %s \n" % url)
+        mapping = locationmap.load(sio)
+        self.assertEqual(mapping["pkg"], url)
+
     def test_load_without_base(self):
         sio = StringIO(SAMPLE_INPUT_WITHOUT_REPOSITORY_URLS)
         mapping = locationmap.load(sio)




More information about the Zope-CVS mailing list