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

Module stanzaprocessor

Classes [hide private]
  TestStanzaFactory
  TestStanzaProcessor
Functions [hide private]
 
setUpModule()
Variables [hide private]
  IQ1 = '\n<iq xmlns="jabber:client" from=\'source@example.com/r...
  IQ2 = '\n<iq xmlns="jabber:client" to=\'source@example.com/res...
  IQ3 = '\n<iq xmlns="jabber:client" from=\'source@example.com/r...
  IQ4 = '\n<iq xmlns="jabber:client" to=\'source@example.com/res...
  MESSAGE1 = '\n<message xmlns="jabber:client" from=\'source@exa...
  MESSAGE2 = '<message xmlns="jabber:client"/>'
  MESSAGE3 = '<message xmlns="jabber:client" type=\'chat\'>\n<bo...
  PRESENCE1 = '\n<presence xmlns="jabber:client" from=\'source@e...
  PRESENCE2 = '<presence xmlns="jabber:client"/>'
  PRESENCE3 = '<presence xmlns="jabber:client" from=\'source@exa...
  PRESENCE4 = '<presence xmlns="jabber:client" to=\'source@examp...
  ALL_STANZAS = ('\n<iq xmlns="jabber:client" from=\'source@exam...
  NON_IQ_STANZAS = ('\n<message xmlns="jabber:client" from=\'sou...
Variables Details [hide private]

IQ1

Value:
'''
<iq xmlns="jabber:client" from=\'source@example.com/res\'
                                to=\'dest@example.com\' type=\'get\' i\
d=\'1\'>
<payload xmlns="http://pyxmpp.jajcus.net/xmlns/test"><abc/></payload>
</iq>'''

IQ2

Value:
'''
<iq xmlns="jabber:client" to=\'source@example.com/res\'
                                from=\'dest@example.com\' type=\'resul\
t\' id=\'1\'>
<payload xmlns="http://pyxmpp.jajcus.net/xmlns/test"><abc/></payload>
</iq>'''

IQ3

Value:
'''
<iq xmlns="jabber:client" from=\'source@example.com/res\'
                                to=\'dest@example.com\' type=\'set\' i\
d=\'2\'>
<payload xmlns="http://pyxmpp.jajcus.net/xmlns/test"><abc/></payload>
</iq>'''

IQ4

Value:
'''
<iq xmlns="jabber:client" to=\'source@example.com/res\'
                                from=\'dest@example.com\' type=\'resul\
t\' id=\'2\'>
</iq>'''

MESSAGE1

Value:
'''
<message xmlns="jabber:client" from=\'source@example.com/res\'
                                to=\'dest@example.com\' type=\'normal\\
' id=\'1\'>
<subject>Subject</subject>
<body>The body</body>
<thread>thread-id</thread>
<payload xmlns="http://pyxmpp.jajcus.net/xmlns/test"><abc/></payload>
...

MESSAGE3

Value:
'''<message xmlns="jabber:client" type=\'chat\'>
<body>Chat!</body>
</message>'''

PRESENCE1

Value:
'''
<presence xmlns="jabber:client" from=\'source@example.com/res\'
                                            to=\'dest@example.com\' id\
=\'1\'>
<show>away</show>
<status>The Status</status>
<priority>10</priority>
<payload xmlns="http://pyxmpp.jajcus.net/xmlns/test"><abc/></payload>
...

PRESENCE3

Value:
'''<presence xmlns="jabber:client" from=\'source@example.com/res\'
                                to=\'dest@example.com\' type="subscrib\
e" />'''

PRESENCE4

Value:
'''<presence xmlns="jabber:client" to=\'source@example.com/res\'
                                from=\'dest@example.com\' type="subscr\
ibed" />'''

ALL_STANZAS

Value:
('''
<iq xmlns="jabber:client" from=\'source@example.com/res\'
                                to=\'dest@example.com\' type=\'get\' i\
d=\'1\'>
<payload xmlns="http://pyxmpp.jajcus.net/xmlns/test"><abc/></payload>
</iq>''',
 '''
<iq xmlns="jabber:client" to=\'source@example.com/res\'
...

NON_IQ_STANZAS

Value:
('''
<message xmlns="jabber:client" from=\'source@example.com/res\'
                                to=\'dest@example.com\' type=\'normal\\
' id=\'1\'>
<subject>Subject</subject>
<body>The body</body>
<thread>thread-id</thread>
<payload xmlns="http://pyxmpp.jajcus.net/xmlns/test"><abc/></payload>
...