[Zope-CVS] CVS: Products/PluggableAuthService/plugins/tests -
test_ScriptablePlugin.py:1.7
Tres Seaver
tseaver at palladion.com
Sun Aug 14 14:27:07 EDT 2005
Update of /cvs-repository/Products/PluggableAuthService/plugins/tests
In directory cvs.zope.org:/tmp/cvs-serv31829/plugins/tests
Modified Files:
test_ScriptablePlugin.py
Log Message:
- Repaired unit test breakage (unittest.TestCase instances have
'failUnless'/'failIf', rather than 'assertTrue'/'assertFalse').
=== Products/PluggableAuthService/plugins/tests/test_ScriptablePlugin.py 1.6 => 1.7 ===
--- Products/PluggableAuthService/plugins/tests/test_ScriptablePlugin.py:1.6 Wed Jul 6 14:49:05 2005
+++ Products/PluggableAuthService/plugins/tests/test_ScriptablePlugin.py Sun Aug 14 14:26:57 2005
@@ -60,8 +60,8 @@
def test_empty( self ):
scriptable_plugin = self._makeOne()
- self.assertFalse( IFaux in providedBy(scriptable_plugin) )
- self.assertFalse( IFauxTwo in providedBy(scriptable_plugin) )
+ self.failIf( IFaux in providedBy(scriptable_plugin) )
+ self.failIf( IFauxTwo in providedBy(scriptable_plugin) )
def test_withTwo( self ):
@@ -78,8 +78,8 @@
scriptable_plugin.manage_updateInterfaces( ['IFaux', 'IFauxTwo'] )
- self.assertTrue( IFaux in providedBy(scriptable_plugin) )
- self.assertTrue( IFauxTwo in providedBy(scriptable_plugin) )
+ self.failUnless( IFaux in providedBy(scriptable_plugin) )
+ self.failUnless( IFauxTwo in providedBy(scriptable_plugin) )
def test_withTwoOnlyOneWired( self ):
@@ -96,7 +96,7 @@
scriptable_plugin.manage_updateInterfaces( ['IFaux',] )
- self.assertTrue( IFaux in providedBy(scriptable_plugin) )
+ self.failUnless( IFaux in providedBy(scriptable_plugin) )
def test_withTwoMinusOne( self ):
@@ -115,8 +115,8 @@
scriptable_plugin._delObject( 'two_method' )
- self.assertTrue( IFaux in providedBy(scriptable_plugin) )
- self.assertFalse( IFauxTwo in providedBy(scriptable_plugin) )
+ self.failUnless( IFaux in providedBy(scriptable_plugin) )
+ self.failIf( IFauxTwo in providedBy(scriptable_plugin) )
if __name__ == '__main__':
More information about the Zope-CVS
mailing list