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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sun Feb 27 01:37:30 CET 2011


Revision: 13479
          http://gar.svn.sourceforge.net/gar/?rev=13479&view=rev
Author:   wahwah
Date:     2011-02-27 00:37:29 +0000 (Sun, 27 Feb 2011)

Log Message:
-----------
checkpkg: MakeCatalognameByPkgname unit test

Adding a test for package name with digits.

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

Modified: csw/mgar/gar/v2/lib/python/struct_util_test.py
===================================================================
--- csw/mgar/gar/v2/lib/python/struct_util_test.py	2011-02-27 00:36:58 UTC (rev 13478)
+++ csw/mgar/gar/v2/lib/python/struct_util_test.py	2011-02-27 00:37:29 UTC (rev 13479)
@@ -75,6 +75,9 @@
     # Pluses?  Plusen?  Plusi?
     self.assertEqual("libnetcdf_c++5", struct_util.MakeCatalognameByPkgname("CSWlibnetcdf-c++5"))
 
+  def testWithDigits(self):
+    self.assertEqual("libfoo1_1", struct_util.MakeCatalognameByPkgname("CSWlibfoo1-1"))
 
+
 if __name__ == '__main__':
 	unittest.main()


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