diff idavoll/test/test_storage.py @ 146:b4490bdc77e5

Change semantics of Node.is_subscribed() to match all subscriptions for an entity (all resources).
author Ralph Meijer <ralphm@ik.nu>
date Fri, 29 Jul 2005 15:33:43 +0000
parents f393bccec4bc
children 5191ba7c4df8
line wrap: on
line diff
--- a/idavoll/test/test_storage.py	Thu Jul 14 20:51:48 2005 +0000
+++ b/idavoll/test/test_storage.py	Fri Jul 29 15:33:43 2005 +0000
@@ -211,10 +211,12 @@
     def testIsSubscriber(self):
         def cb(subscribed):
             assertEquals(subscribed[0][1], True)
-            assertEquals(subscribed[1][1], False)
+            assertEquals(subscribed[1][1], True)
             assertEquals(subscribed[2][1], False)
+            assertEquals(subscribed[3][1], False)
 
         d = defer.DeferredList([self.node.is_subscribed(SUBSCRIBER),
+                                self.node.is_subscribed(SUBSCRIBER.userhostJID()),
                                 self.node.is_subscribed(SUBSCRIBER_PENDING),
                                 self.node.is_subscribed(OWNER)])
         d.addCallback(cb)