[csw-devel] SF.net SVN: gar:[12106] csw/mgar/gar/v2/lib/python/package_checks_test.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Wed Dec 29 00:41:46 CET 2010
Revision: 12106
http://gar.svn.sourceforge.net/gar/?rev=12106&view=rev
Author: wahwah
Date: 2010-12-28 23:41:46 +0000 (Tue, 28 Dec 2010)
Log Message:
-----------
checkpkg: Mocks specific for indiv/set tests
Set tests need to be mocked with a different class than individual
package tests. Also, using some mox meta magic to avoid boilerplate
code.
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-12-28 20:58:44 UTC (rev 12105)
+++ csw/mgar/gar/v2/lib/python/package_checks_test.py 2010-12-28 23:41:46 UTC (rev 12106)
@@ -33,6 +33,8 @@
class CheckpkgUnitTestHelper(object):
"""Wraps common components of checkpkg tests."""
+ __metaclass__ = mox.MoxMetaTestBase
+
def setUp(self):
super(CheckpkgUnitTestHelper, self).setUp()
self.mox = mox.Mox()
@@ -60,7 +62,6 @@
self.error_mgr_mock,
self.logger_mock,
self.messenger)
- self.mox.VerifyAll()
class TestMultipleDepends(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