CVS: Products/PluggableAuthService/plugins/tests - test_ScriptablePlugin.py:1.7

Tres Seaver <[email protected]>
Newsgroups gmane.comp.web.zope.public-cvs
Message-ID <[email protected]>
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__':

_______________________________________________
Zope-CVS maillist  -  [email protected]
http://mail.zope.org/mailman/listinfo/zope-cvs

Zope CVS instructions: http://dev.zope.org/CVS
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.