summaryrefslogtreecommitdiff
path: root/tests/sleektest.py
AgeCommit message (Collapse)Author
2010-10-06Corrected stream header tester.Lance Stout
Added test for testing stream headers.
2010-10-06Updated SleekTest and related tests.Lance Stout
May now use a component for stream testing. Methods provided for testing stream headers.
2010-08-27Fixed SleekTest compare method to check XML text.Lance Stout
Corrected resulting test failures. All pass again.
2010-08-13Added a generic checkStanza method to SleekTest. Updated the other check ↵Lance Stout
methods to use it.
2010-08-12Updated SleekTest with docs and PEP8 style.Lance Stout
2010-08-11Updated SleekTest.streamClose to check that the stream was actually started ↵Lance Stout
before closing it. Updated tests for Iq stanzas to not start a stream for every test; tests now run a lot faster. The call to streamClose must still be in the tearDown method to ensure it is called in the case of an error.
2010-08-06Updated SleekTest to use the new tostring function instead of ET.tostringLance Stout
2010-08-03Fix whitespace issues, and make some debugging statements clearer.Lance Stout
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.