Changeset 6:283b6997cf7d for wokkel/test/test_pubsub.py
- Timestamp:
- Oct 4, 2007, 9:47:22 AM (15 years ago)
- Branch:
- default
- Convert:
- svn:b33ecbfc-034c-dc11-8662-000475d9059e/trunk@13
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wokkel/test/test_pubsub.py
r4 r6 26 26 iq = domish.Element((None, 'iq')) 27 27 iq['from'] = 'user@example.org' 28 iq['to'] = 'pubsub.example.org' 28 29 iq['type'] = 'set' 29 30 iq.addElement(('http://jabber.org/protocol/pubsub', 'pubsub')) … … 45 46 iq['type'] = 'set' 46 47 iq['from'] = 'user@example.org' 48 iq['to'] = 'pubsub.example.org' 47 49 iq.addElement(('http://jabber.org/protocol/pubsub', 'pubsub')) 48 50 iq.pubsub.addElement('publish') … … 50 52 handler.handleRequest(iq) 51 53 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) 53 56 54 57 def test_onOptionsGet(self): … … 57 60 iq = domish.Element((None, 'iq')) 58 61 iq['from'] = 'user@example.org' 62 iq['to'] = 'pubsub.example.org' 59 63 iq['type'] = 'get' 60 64 iq.addElement(('http://jabber.org/protocol/pubsub', 'pubsub'))
Note: See TracChangeset
for help on using the changeset viewer.