summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2011-03-23Cleaned XEP-0249 plugin, added tests.Lance Stout
2011-03-22Merge branch 'develop' into stream_featuresLance Stout
2011-03-22Merge branch 'develop' into rosterLance Stout
2011-03-22Updated XEP-0128 plugin to work with the new XEP-0030 plugin.Lance Stout
Required fixing a few bugs in StanzaBase related to iterable substanzas.
2011-03-18Merge branch 'develop' into stream_featuresLance Stout
2011-02-24Merge branch 'develop' into rosterLance Stout
2011-02-24Add tests for XEP-0085, fix some bugs.Lance Stout
2011-02-24Updated the XEP-0085 plugin.Lance Stout
Can now be used as so: >>> msg['chat_state'] '' >>> msg <message /> >>> msg['chat_state'] = 'paused' >>> msg <message> <paused xmlns="http://jabber.org/protocol/chatstates" /> </message> >>> msg['chat_state'] 'paused' >>> del msg['chat_state'] >>> msg <message />
2011-02-14Merge branch 'develop' into stream_featuresLance Stout
Conflicts: sleekxmpp/xmlstream/stanzabase.py
2011-02-14Merge branch 'develop' into rosterLance Stout
Conflicts: sleekxmpp/clientxmpp.py
2011-02-11XMPPError exceptions can keep a stanza's contents.Lance Stout
This allows exceptions to include the original content of a stanza in the error response by including the parameter clear=False when raising the exception.
2011-02-08Update XEP-0060 test.Lance Stout
2011-02-07Fixed failing tests from new XEP-0009 pluginLance Stout
2011-02-05fixed mergeNathan Fritz
2011-02-02Merge branch 'develop' into rosterLance Stout
Conflicts: sleekxmpp/basexmpp.py
2011-01-27Update tostring methods.Lance Stout
Will now always show top-level namespace, unless it is the same as the stream's default namespace. Also added the XMPP stream namespace to the namespace map as 'stream'.
2011-01-19Fix tests for Nick stanza.Lance Stout
2011-01-13Introduced new XEP-0009 into develop.Dann Martens
2011-01-09Merge branch 'develop' into rosterLance Stout
2011-01-08Update the XEP-0092 plugin to the new style.Lance Stout
2011-01-08Add support for XEP-0059 to XEP-0030 plugin.Lance Stout
2011-01-08Added new XEP-0059 plugin.Lance Stout
Contributed by Erik Reuterborg Larsson (who).
2011-01-05Merge branch 'develop' into rosterLance Stout
2010-12-28Make the new XEP-30 plugin retain older API signatures.Lance Stout
2010-12-21Merge branch 'develop' into rosterLance Stout
2010-12-17Make tests pass for catching exceptions.Lance Stout
May now use sys.excepthook to catch exceptions from threaded handlers.
2010-12-13Merge branch 'develop' into rosterLance Stout
Conflicts: sleekxmpp/basexmpp.py
2010-12-09First pass at a new XEP-0030 plugin.Lance Stout
Now with dynamic node handling goodness. Some things are not quite working yet, in particular: set_items set_info set_identities set_features And still need more unit tests to round things out.
2010-12-08Fix xml:lang tostring test.Lance Stout
2010-12-07Add support for using xml:lang values.Lance Stout
Support is only for adding literal XML content to stanzas. Full support for things like multiple message bodies with different xml:lang values is still in the works.
2010-12-07Added option for iq.send to accept a callhandler.Lance Stout
The callback will be a stream level handler, and will not execute in its own thread. If you must have a thread, have the callback function raise a custom event, which can be processed by another event handler, which may run in an individual thread, like so: def handle_reply(self, iq): self.event('custom_event', iq) def do_long_operation_in_thread(self, iq): ... self.add_event_handler('custom_event', self.do_long_operation_in_thread) ...take out already prepared iq stanza... iq.send(callback=self.handle_reply)
2010-11-18Adding stream tests for XEP-0030.Lance Stout
Fixed some errors when responding to disco requests.
2010-11-18Merge branch 'develop' of github.com:fritzy/SleekXMPP into rosterLance Stout
2010-11-17Fixed some live stream test errors.Lance Stout
Added test demonstrating using multiple stream clients in a single test.
2010-11-17Merge branch 'develop' into rosterLance Stout
2010-11-17Make live stream tests work better.Lance Stout
SleekTest can now use matchers when checking stanzas, using the method parameter for self.check(), self.recv(), and self.send(): method='exact' - Same behavior as before 'xpath' - Use xpath matcher 'id' - Use ID matcher 'mask' - Use XML mask matcher 'stanzapath' - Use StanzaPath matcher recv_feature and send_feature only accept 'exact' and 'mask' for now.
2010-11-17Remove extraneous files.Lance Stout
2010-11-17Merge branch 'roster' of github.com:fritzy/SleekXMPP into rosterLance Stout
Conflicts: sleekxmpp/basexmpp.py sleekxmpp/roster.py sleekxmpp/test/sleektest.py tests/test_stream_presence.py tests/test_stream_roster.py
2010-11-17More cleanup.Lance Stout
2010-11-17Cleaned up names.Lance Stout
2010-11-17First pass at integrating the new roster manager.Lance Stout
2010-11-05Simplified SleekTest.Lance Stout
* check_stanza does not require stanza_class parameter. Introspection! * check_message, check_iq, and check_presence removed -- use check instead. * stream_send_stanza, stream_send_message, stream_send_iq, and stream_send_presence removed -- use send instead. * Use recv instead of recv_message, recv_presence, etc. * check_jid instead of check_JID * stream_start may accept multi=True to return a new SleekTest instance for testing multiple streams at once.
2010-10-27Cleaned up names.Lance Stout
2010-10-26First pass at integrating the new roster manager.Lance Stout
2010-10-25Made exceptions work.sleek-1.0-Beta21.0-Beta2Lance Stout
Raising an XMPPError exception from an event handler now works, even if from a threaded handler. Added stream tests to verify. We should start using XMPPError, it really makes things simple!
2010-10-25Added more presence stream tests.Lance Stout
Tests auto_authorize=False, and got_online.
2010-10-25Fixed bug in presence subscription handling.Lance Stout
Subscription requests and responses were not setting the correct 'to' attribute.
2010-10-24Added stream tests for presence events.Lance Stout
First batch of tests, currently focuses on the got_offline event.
2010-10-24Added test for error stanzas.Lance Stout
2010-10-24More JID unit tests.Lance Stout
sleekxmpp.xmlstream.jid now has 100% coverage!