diff idavoll/test/test_storage.py @ 226:b7018ec56ee5

Always use the bare JID for affilitations. Author: sir_sigurd, ralphm. Fixes: #20.
author Ralph Meijer <ralphm@ik.nu>
date Sun, 13 Feb 2011 21:46:33 +0100
parents 0eafdced5f24
children 8540825f85e0
line wrap: on
line diff
--- a/idavoll/test/test_storage.py	Sun Feb 13 21:34:18 2011 +0100
+++ b/idavoll/test/test_storage.py	Sun Feb 13 21:46:33 2011 +0100
@@ -13,7 +13,7 @@
 
 from idavoll import error, iidavoll
 
-OWNER = jid.JID('owner@example.com')
+OWNER = jid.JID('owner@example.com/Work')
 SUBSCRIBER = jid.JID('subscriber@example.com/Home')
 SUBSCRIBER_NEW = jid.JID('new@example.com/Home')
 SUBSCRIBER_TO_BE_DELETED = jid.JID('to_be_deleted@example.com/Home')
@@ -421,7 +421,7 @@
 
         def cb2(affiliations):
             affiliations = dict(((a[0].full(), a[1]) for a in affiliations))
-            self.assertEquals(affiliations[OWNER.full()], 'owner')
+            self.assertEquals(affiliations[OWNER.userhost()], 'owner')
 
         d = self.s.getNode('pre-existing')
         d.addCallback(cb1)