summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream/statemachine.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2010-06-27 17:33:43 -0400
committerLance Stout <lancestout@gmail.com>2010-06-27 17:33:43 -0400
commit5c76d969f79936ce56828dba2c5ab59214feec12 (patch)
tree44511d54bb8bd73abfb2f8a19e98b3d3da43ef9b /sleekxmpp/xmlstream/statemachine.py
parent059cc9ccc4c41942f6a9b2ba3baab443a91d2a60 (diff)
downloadslixmpp-5c76d969f79936ce56828dba2c5ab59214feec12.tar.gz
slixmpp-5c76d969f79936ce56828dba2c5ab59214feec12.tar.bz2
slixmpp-5c76d969f79936ce56828dba2c5ab59214feec12.tar.xz
slixmpp-5c76d969f79936ce56828dba2c5ab59214feec12.zip
Added a new SleekTest class that provides useful methods for test cases.
Can now use: (where self is a SleekTest instance) self.stanzaPlugin(stanza, plugin) self.Message() \ self.Iq() > Just like basexmpp.Message(), etc. self.Presence() / self.checkMessage(msg, xmlstring) self.checkIq(iq, xmlstring) self.checkPresence(pres, xmlstring) <- Not implemented yet, but stub is there. The check* methods also accept a use_values keyword argument that defaults to True. When this value is True, an additional test is executed by creating a stanza using getValues() and setValues(). Since some stanza objects can override these two methods, disabling this test is sometimes required.
Diffstat (limited to 'sleekxmpp/xmlstream/statemachine.py')
0 files changed, 0 insertions, 0 deletions