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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sun Aug 15 10:47:48 CEST 2010


Revision: 10743
          http://gar.svn.sourceforge.net/gar/?rev=10743&view=rev
Author:   wahwah
Date:     2010-08-15 08:47:48 +0000 (Sun, 15 Aug 2010)

Log Message:
-----------
mGAR v2: checkpkg, better test data length.

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

Modified: csw/mgar/gar/v2/lib/python/package_checks_test.py
===================================================================
--- csw/mgar/gar/v2/lib/python/package_checks_test.py	2010-08-14 21:50:53 UTC (rev 10742)
+++ csw/mgar/gar/v2/lib/python/package_checks_test.py	2010-08-15 08:47:48 UTC (rev 10743)
@@ -70,8 +70,8 @@
 class TestDescriptionLong(CheckpkgUnitTestHelper, unittest.TestCase):
   FUNCTION_NAME = 'CheckDescription'
   def CheckpkgTest(self):
-    self.pkg_data["pkginfo"]["NAME"] = 'foo - ' 'A' * 200
-    self.error_mgr_mock.ReportError('pkginfo-description-too-long', 'length=1394')
+    self.pkg_data["pkginfo"]["NAME"] = 'foo - ' + ('A' * 200)
+    self.error_mgr_mock.ReportError('pkginfo-description-too-long', 'length=200')
 
 
 class TestDescriptionNotCapitalized(CheckpkgUnitTestHelper, unittest.TestCase):


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