Package pyxmpp2 :: Package test :: Module binding
[hide private]

Module binding

Classes [hide private]
  AuthorizedEventHandler
  TestBindingInitiator
  TestBindingReceiver
Functions [hide private]
 
setUpModule()
Variables [hide private]
  C2S_SERVER_STREAM_HEAD = '<stream:stream version="1.0" from="1...
  C2S_CLIENT_STREAM_HEAD = '<stream:stream version="1.0" to="127...
  BIND_FEATURES = '<stream:features>\n <bind xmlns=\'urn:iet...
  BIND_GENERATED_REQUEST = '<iq type="set" id="42">\n <bind xm...
  BIND_GENERATED_RESPONSE = '<iq type="result" id="{0}">\n <bin...
  BIND_PROVIDED_REQUEST = '<iq type="set" id="42">\n <bind xml...
  BIND_PROVIDED_RESPONSE = '<iq type="result" id="{0}">\n <bind...
  STREAM_TAIL = '</stream:stream>'
  PARSE_ERROR_RESPONSE = '<stream:error><xml-not-well-formed xm...
  TIMEOUT = 1.0
Variables Details [hide private]

C2S_SERVER_STREAM_HEAD

Value:
'<stream:stream version="1.0" from="127.0.0.1" xmlns:stream="http://et\
herx.jabber.org/streams" xmlns="jabber:client">'

C2S_CLIENT_STREAM_HEAD

Value:
'<stream:stream version="1.0" to="127.0.0.1" xmlns:stream="http://ethe\
rx.jabber.org/streams" xmlns="jabber:client">'

BIND_FEATURES

Value:
'''<stream:features>
     <bind xmlns=\'urn:ietf:params:xml:ns:xmpp-bind\'/>
</stream:features>'''

BIND_GENERATED_REQUEST

Value:
'''<iq type="set" id="42">
  <bind  xmlns="urn:ietf:params:xml:ns:xmpp-bind">
  </bind>
</iq>
'''

BIND_GENERATED_RESPONSE

Value:
'''<iq type="result" id="{0}">
  <bind  xmlns="urn:ietf:params:xml:ns:xmpp-bind">
    <jid>test@127.0.0.1/Generated</jid>
  </bind>
</iq>
'''

BIND_PROVIDED_REQUEST

Value:
'''<iq type="set" id="42">
  <bind  xmlns="urn:ietf:params:xml:ns:xmpp-bind">
    <resource>Provided</resource>
  </bind>
</iq>
'''

BIND_PROVIDED_RESPONSE

Value:
'''<iq type="result" id="{0}">
  <bind  xmlns="urn:ietf:params:xml:ns:xmpp-bind">
    <jid>test@127.0.0.1/Provided</jid>
  </bind>
</iq>
'''

PARSE_ERROR_RESPONSE

Value:
'<stream:error><xml-not-well-formed  xmlns="urn:ietf:params:xml:ns:xmp\
p-streams"/></stream:error></stream:stream>'