Ignore:
Timestamp:
Oct 4, 2007, 9:47:22 AM (15 years ago)
Author:
Ralph Meijer <ralphm@…>
Branch:
default
Convert:
svn:b33ecbfc-034c-dc11-8662-000475d9059e/trunk@13
Message:

Support services on a JID.

Author: ralphm
Fixes #2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wokkel/test/test_pubsub.py

    r4 r6  
    2626        iq = domish.Element((None, 'iq'))
    2727        iq['from'] = 'user@example.org'
     28        iq['to'] = 'pubsub.example.org'
    2829        iq['type'] = 'set'
    2930        iq.addElement(('http://jabber.org/protocol/pubsub', 'pubsub'))
     
    4546        iq['type'] = 'set'
    4647        iq['from'] = 'user@example.org'
     48        iq['to'] = 'pubsub.example.org'
    4749        iq.addElement(('http://jabber.org/protocol/pubsub', 'pubsub'))
    4850        iq.pubsub.addElement('publish')
     
    5052        handler.handleRequest(iq)
    5153
    52         self.assertEqual((JID('user@example.org'), 'test', []), handler.args)
     54        self.assertEqual((JID('user@example.org'),
     55                          JID('pubsub.example.org'), 'test', []), handler.args)
    5356
    5457    def test_onOptionsGet(self):
     
    5760        iq = domish.Element((None, 'iq'))
    5861        iq['from'] = 'user@example.org'
     62        iq['to'] = 'pubsub.example.org'
    5963        iq['type'] = 'get'
    6064        iq.addElement(('http://jabber.org/protocol/pubsub', 'pubsub'))
Note: See TracChangeset for help on using the changeset viewer.