Age | Commit message (Collapse) | Author |
|
Moved SleekTest to sleekxmpp.test.
Organized test suites by their focus.
- Suites focused on testing stanza objects are named test_stanza_X.py
- Suites focused on testing stream behavior are name test_stream_X.py
|
|
|
|
Added test for testing stream headers.
|
|
May now use a component for stream testing.
Methods provided for testing stream headers.
|
|
Corrected resulting test failures. All pass again.
|
|
methods to use it.
|
|
|
|
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.
|
|
|
|
|
|
|
|
references to nonexistant license.txt to LICENSE.
|
|
Also, removed unnecessary TestStream class and shortened timeout during stream connection.
|
|
|
|
|
|
registerStanzaPlugin function.
Updated plugins and tests to use new function.
|
|
stream.
|
|
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.
|