Ignore:
Timestamp:
Oct 17, 2008, 12:14:32 AM (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@110
Message:

change namespaces to be consistent

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wokkel/test/test_muc.py

    r113 r116  
    127127        response.addElement('query', disco.NS_INFO)
    128128        # need to add information to response
    129         response.query.addChild(disco.DiscoFeature(muc.NS))
     129        response.query.addChild(disco.DiscoFeature(muc.NS_MUC))
    130130        response.query.addChild(disco.DiscoIdentity(category='conference',
    131131                                                    name='Macbeth Chat Service',
     
    343343
    344344        iq = self.stub.output[-1]
    345        
     345        print iq.toXml()
    346346        self.failUnless(xpath.matches("/iq/query[@xmlns='%s']" % (muc.NS_REQUEST), iq), 'Invalid iq register request')
    347347       
    348348        response = toResponse(iq, 'result')
     349       
    349350        self.stub.send(response)
    350351        return d
     
    357358        m = self.stub.output[-1]
    358359       
    359         self.failUnless(xpath.matches("/message/x[@type='submit']/field/value[text()='%s']" % (muc.NS_REQUEST,), m), 'Invalid voice message stanza')
     360        self.failUnless(xpath.matches("/message/x[@type='submit']/field/value[text()='%s']" % (muc.NS_MUC_REQUEST,), m), 'Invalid voice message stanza')
    360361
    361362
     
    378379
    379380        iq = self.stub.output[-1]
    380         self.failUnless(xpath.matches("/iq/query[@xmlns='%s']/x"% (muc.NS_OWNER,), iq), 'Bad configure request')
    381        
    382         response = toResponse(iq, 'result')
    383         self.stub.send(response)
    384         return d
    385 
    386 
     381        self.failUnless(xpath.matches("/iq/query[@xmlns='%s']/x"% (muc.NS_MUC_OWNER,), iq), 'Bad configure request')
     382       
     383        response = toResponse(iq, 'result')
     384        self.stub.send(response)
     385        return d
     386
     387
Note: See TracChangeset for help on using the changeset viewer.