Ignore:
Timestamp:
Jan 10, 2010, 3:01:41 PM (11 years ago)
Author:
Ralph Meijer <ralphm@…>
Branch:
default
Message:

Correctly report disco identity for PubSubService? without PubSubResource?.

Author: ralphm.
Fixes #64.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wokkel/test/test_pubsub.py

    r86 r87  
    31573157
    31583158
     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
    31593176    def test_publish(self):
    31603177        """
Note: See TracChangeset for help on using the changeset viewer.