Age | Commit message (Collapse) | Author |
|
|
|
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.
|