diff idavoll/test/test_backend.py @ 157:21fcfb86433f

Fix tests to work with current Twisted. Really do 0.5.0 release.
author Ralph Meijer <ralphm@ik.nu>
date Mon, 28 Aug 2006 12:48:45 +0000
parents 5191ba7c4df8
children ef22e4150caa
line wrap: on
line diff
--- a/idavoll/test/test_backend.py	Mon Aug 28 12:44:20 2006 +0000
+++ b/idavoll/test/test_backend.py	Mon Aug 28 12:48:45 2006 +0000
@@ -2,7 +2,6 @@
 # See LICENSE for details.
 
 from twisted.trial import unittest
-from twisted.trial.assertions import *
 from zope.interface import implements
 from twisted.internet import defer
 from twisted.words.protocols.jabber import jid
@@ -45,8 +44,8 @@
             return defer.succeed(None)
 
         def cb(result):
-            assert_(self.pre_delete_called)
-            assert_(self.delete_called)
+            self.assert_(self.pre_delete_called)
+            self.assert_(self.delete_called)
 
         self.backend.register_pre_delete(pre_delete)
         d = self.backend.delete_node('to-be-deleted', OWNER)