summaryrefslogtreecommitdiff
path: root/tests/sleektest.py
AgeCommit message (Collapse)Author
2010-07-29Remove extra debugging lines and speed up stream testing in SleekTest.Lance Stout
2010-07-20Updated license notices to use the correct MIT format. Also corrected ↵Lance Stout
references to nonexistant license.txt to LICENSE.
2010-07-19Updated SleekTest to implement the checkPresence method.Lance Stout
Also, removed unnecessary TestStream class and shortened timeout during stream connection.
2010-07-19more set/get Values changesNathan Fritz
2010-07-19updated sleektest to use new stanza get/set values apiNathan Fritz
2010-07-19Condensed all of the stanzaPlugin functions into a single ↵Lance Stout
registerStanzaPlugin function. Updated plugins and tests to use new function.
2010-07-14Updated SleekTest to be able to simulate and test interactions with an XML ↵Lance Stout
stream.
2010-06-27Added a new SleekTest class that provides useful methods for test cases.Lance Stout
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.