Changeset 87:c9d1bf0b783d for wokkel/test/test_pubsub.py
- Timestamp:
- Jan 10, 2010, 3:01:41 PM (13 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wokkel/test/test_pubsub.py
r86 r87 3157 3157 3158 3158 3159 def test_getDiscoInfo(self): 3160 """ 3161 Test getDiscoInfo calls getNodeInfo and returns some minimal info. 3162 """ 3163 def cb(info): 3164 discoInfo = disco.DiscoInfo() 3165 for item in info: 3166 discoInfo.append(item) 3167 self.assertIn(('pubsub', 'service'), discoInfo.identities) 3168 self.assertIn(disco.NS_DISCO_ITEMS, discoInfo.features) 3169 3170 d = self.service.getDiscoInfo(JID('user@example.org/home'), 3171 JID('pubsub.example.org'), '') 3172 d.addCallback(cb) 3173 return d 3174 3175 3159 3176 def test_publish(self): 3160 3177 """
Note: See TracChangeset
for help on using the changeset viewer.