Changeset 137:8206d7483945 for wokkel
- Timestamp:
- Aug 3, 2011, 8:54:25 PM (11 years ago)
- Branch:
- wokkel-muc-client-support-24
- Location:
- wokkel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
wokkel/muc.py
r132 r137 363 363 self['type'] = 'chat' 364 364 if isinstance(to, jid.JID): 365 self['to'] = to. userhost()365 self['to'] = to.full() 366 366 else: 367 367 self['to'] = to -
wokkel/test/test_muc.py
r136 r137 404 404 Send private messages to muc entities. 405 405 """ 406 other_nick = self.room_jid.userhost()+'/OtherNick'406 other_nick = JID(self.room_jid.userhost()+'/OtherNick') 407 407 408 408 self.protocol.chat(other_nick, 'This is a test') … … 410 410 msg = self.stub.output[-1] 411 411 412 query = "/message[@type='chat' and @to='%s']/body" % other_nick 412 query = "/message[@type='chat' and @to='%s']/body" % other_nick.full() 413 413 self.assertTrue(xpath.matches(query, msg), 'Wrong message type') 414 414
Note: See TracChangeset
for help on using the changeset viewer.