Ignore:
Timestamp:
Oct 21, 2008, 9:25:35 PM (14 years ago)
Author:
Christopher Zorn <tofu@…>
Branch:
wokkel-muc-client-support-24
Convert:
svn:b33ecbfc-034c-dc11-8662-000475d9059e/branches/wokkel-muc-client-support-24@123
Message:

some docstrings, clean up in keeping params consitent and tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wokkel/test/test_muc.py

    r126 r127  
    361361        archive.append(msg)
    362362
    363         self.protocol.history(self.room_jid.userhost(), archive)
     363        self.protocol.history(self.room_jid, archive)
    364364
    365365
     
    405405            self.failUnless(iq['type']=='result', 'We did not get a result')
    406406       
    407         d = self.protocol.register(self.room_jid.userhost())
     407        d = self.protocol.register(self.room_jid)
    408408        d.addCallback(cb)
    409409
     
    445445        iq = self.stub.output[-1]
    446446        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')
    447465       
    448466        response = toResponse(iq, 'result')
Note: See TracChangeset for help on using the changeset viewer.