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

Fred L. Drake, Jr. fred at zope.com
Tue Apr 20 14:53:43 EDT 2004


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

Modified Files:
	test_app.py 
Log Message:
add tests to make sure version_from_tagname() works with what we
expect to use under Subversion as well


=== Packages/zpkgtools/zpkgtools/tests/test_app.py 1.7 => 1.8 ===
--- Packages/zpkgtools/zpkgtools/tests/test_app.py:1.7	Tue Apr 20 14:42:35 2004
+++ Packages/zpkgtools/zpkgtools/tests/test_app.py	Tue Apr 20 14:53:42 2004
@@ -149,6 +149,7 @@
         # Test only the version_from_tagname() function
         convert = app.version_from_tagname
         eq = self.assertEqual
+        # Test with underscores (CVS style)
         eq(convert("my-package-1_0"), "1.0")
         eq(convert("my-package-1_0_42"), "1.0.42")
         eq(convert("my-package-1_0_42_24"), "1.0.42.24")
@@ -157,6 +158,15 @@
         eq(convert("my-package-1_0a666"), "1.0a666")
         eq(convert("my-package-1_0b777"), "1.0b777")
         eq(convert("my-package-1_0c888"), "1.0c888")
+        # Test with underscores (Subversion style?)
+        eq(convert("my-package-1.0"), "1.0")
+        eq(convert("my-package-1.0.42"), "1.0.42")
+        eq(convert("my-package-1.0.42.24"), "1.0.42.24")
+        eq(convert("my-package-1.0.42alpha42"), "1.0.42alpha42")
+        eq(convert("my-package-1.0beta"), "1.0beta")
+        eq(convert("my-package-1.0a666"), "1.0a666")
+        eq(convert("my-package-1.0b777"), "1.0b777")
+        eq(convert("my-package-1.0c888"), "1.0c888")
         #
         # Check that unparsable tags return None
         #




More information about the Zope-CVS mailing list