[csw-devel] SF.net SVN: gar:[13337] csw/mgar/gar/v2/lib/python/opencsw_test.py

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Wed Feb 16 17:35:03 CET 2011


Revision: 13337
          http://gar.svn.sourceforge.net/gar/?rev=13337&view=rev
Author:   wahwah
Date:     2011-02-16 16:35:03 +0000 (Wed, 16 Feb 2011)

Log Message:
-----------
submitpkg: A test for the 'p' flag in version

Modified Paths:
--------------
    csw/mgar/gar/v2/lib/python/opencsw_test.py

Modified: csw/mgar/gar/v2/lib/python/opencsw_test.py
===================================================================
--- csw/mgar/gar/v2/lib/python/opencsw_test.py	2011-02-16 16:34:31 UTC (rev 13336)
+++ csw/mgar/gar/v2/lib/python/opencsw_test.py	2011-02-16 16:35:03 UTC (rev 13337)
@@ -224,7 +224,19 @@
     hash(result[2]['extra_strings'])
     self.assertEqual(expected, opencsw.ParseVersionString(data))
 
+  def testThePflag(self):
+    data = "1.6.0,p,REV=2011.02.14"
+    expected = (
+        '1.6.0',
+        {
+            'minor version': '6',
+            'patchlevel': '0',
+            'major version': '1'},
+        {'extra_strings': ('p',),
+         'REV': '2011.02.14'})
+    self.assertEqual(expected, opencsw.ParseVersionString(data))
 
+
 class CompareVersionsTest(unittest.TestCase):
 
   V1 = "1.8.1,REV=2010.07.13"


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list