[csw-devel] SF.net SVN: gar:[15947] csw/mgar/gar/v2/lib/python
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Fri Oct 21 10:07:45 CEST 2011
Revision: 15947
http://gar.svn.sourceforge.net/gar/?rev=15947&view=rev
Author: wahwah
Date: 2011-10-21 08:07:45 +0000 (Fri, 21 Oct 2011)
Log Message:
-----------
Check name correction.
Modified Paths:
--------------
csw/mgar/gar/v2/lib/python/package_checks.py
csw/mgar/gar/v2/lib/python/package_checks_test.py
Modified: csw/mgar/gar/v2/lib/python/package_checks.py
===================================================================
--- csw/mgar/gar/v2/lib/python/package_checks.py 2011-10-21 08:07:12 UTC (rev 15946)
+++ csw/mgar/gar/v2/lib/python/package_checks.py 2011-10-21 08:07:45 UTC (rev 15947)
@@ -187,7 +187,7 @@
return new_ppbs
-def CatalognameLowercase(pkg_data, error_mgr, logger, messenger):
+def CheckCatalognameLowercase(pkg_data, error_mgr, logger, messenger):
catalogname = pkg_data["basic_stats"]["catalogname"]
if catalogname != catalogname.lower():
error_mgr.ReportError("catalogname-not-lowercase")
Modified: csw/mgar/gar/v2/lib/python/package_checks_test.py
===================================================================
--- csw/mgar/gar/v2/lib/python/package_checks_test.py 2011-10-21 08:07:12 UTC (rev 15946)
+++ csw/mgar/gar/v2/lib/python/package_checks_test.py 2011-10-21 08:07:45 UTC (rev 15947)
@@ -169,18 +169,18 @@
class TestCatalognameLowercase_1(CheckpkgUnitTestHelper, unittest.TestCase):
- FUNCTION_NAME = 'CatalognameLowercase'
+ FUNCTION_NAME = 'CheckCatalognameLowercase'
def CheckpkgTest(self):
self.pkg_data["basic_stats"]["catalogname"] = "Foo"
self.error_mgr_mock.ReportError('catalogname-not-lowercase')
class TestCatalognameLowercase_2(CheckpkgUnitTestHelper, unittest.TestCase):
- FUNCTION_NAME = 'CatalognameLowercase'
+ FUNCTION_NAME = 'CheckCatalognameLowercase'
def CheckpkgTest(self):
self.pkg_data["basic_stats"]["catalogname"] = "foo"
class TestCatalognameLowercase_3(CheckpkgUnitTestHelper, unittest.TestCase):
- FUNCTION_NAME = 'CatalognameLowercase'
+ FUNCTION_NAME = 'CheckCatalognameLowercase'
def CheckpkgTest(self):
self.pkg_data["basic_stats"]["catalogname"] = "foo+abc&123"
self.error_mgr_mock.ReportError('catalogname-is-not-a-simple-word')
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