Changeset 127:1610e7a3b777 for wokkel/test/test_muc.py
- Timestamp:
- Oct 21, 2008, 9:25:35 PM (14 years ago)
- Branch:
- wokkel-muc-client-support-24
- Convert:
- svn:b33ecbfc-034c-dc11-8662-000475d9059e/branches/wokkel-muc-client-support-24@123
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wokkel/test/test_muc.py
r126 r127 361 361 archive.append(msg) 362 362 363 self.protocol.history(self.room_jid .userhost(), archive)363 self.protocol.history(self.room_jid, archive) 364 364 365 365 … … 405 405 self.failUnless(iq['type']=='result', 'We did not get a result') 406 406 407 d = self.protocol.register(self.room_jid .userhost())407 d = self.protocol.register(self.room_jid) 408 408 d.addCallback(cb) 409 409 … … 445 445 iq = self.stub.output[-1] 446 446 self.failUnless(xpath.matches("/iq/query[@xmlns='%s']/x"% (muc.NS_MUC_OWNER,), iq), 'Bad configure request') 447 448 response = toResponse(iq, 'result') 449 self.stub.send(response) 450 return d 451 452 453 def test_roomDestroy(self): 454 """ Destroy a room. 455 """ 456 457 def cb(destroyed): 458 self.failUnless(destroyed==True, 'Room not destroyed.') 459 460 d = self.protocol.destroy(self.room_jid) 461 d.addCallback(cb) 462 463 iq = self.stub.output[-1] 464 self.failUnless(xpath.matches("/iq/query[@xmlns='%s']/destroy"% (muc.NS_MUC_OWNER,), iq), 'Bad configure request') 447 465 448 466 response = toResponse(iq, 'result')
Note: See TracChangeset
for help on using the changeset viewer.