summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
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-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-01-19Fix tests for Nick stanza.Lance Stout
2011-01-13Introduced new XEP-0009 into develop.Dann Martens
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).
2010-12-28Make the new XEP-30 plugin retain older API signatures.Lance Stout
2010-12-17Make tests pass for catching exceptions.Lance Stout
May now use sys.excepthook to catch exceptions from threaded handlers.
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-17Fixed some live stream test errors.Lance Stout
Added test demonstrating using multiple stream clients in a single test.
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-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-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!
2010-10-24Fixed resource bug in JIDs.Lance Stout
JIDs without resources will return '' instead of the bare JID. Cleaned up JID tests, and added check_JID to SleekTest.
2010-10-24Added stream tests for rosters.Lance Stout
2010-10-21Fixed mixed text and elements bug in tostring.Lance Stout
XML of the form <a>foo <b>bar</b> baz</a> was outputted as <a>foo <b>bar</b> baz baz</a>. Includes unit test.
2010-10-17Underscore names by default.Lance Stout
Stanza objects now accept the use of underscored names. The CamelCase versions are still available for backwards compatibility, but are discouraged. The property stanza.values now maps to the old getStanzaValues and setStanzaValues, in addition to _set_stanza_values and _get_stanza_values.
2010-10-07Added example live stream test.Lance Stout
Run using: python tests/live_test.py
2010-10-07Corrected test errors.Lance Stout
There was a bug in the XML compare method.
2010-10-07Unit test reorganization.Lance Stout
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
2010-10-07Changed SleekTest to use underscored names.Lance Stout
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-10-01Made first pass at cleaning BaseXMPP.Lance Stout
Have not intregrated the new JID class yet.
2010-10-01Modified event handling to use the event queue.Lance Stout
Updated tests to match. (Needed to add a small wait to make sure the event got through the queue before checking the results.)
2010-08-30Fixed ElementBase.match to match using sub_interface elements.Lance Stout
2010-08-30Updated ElementBase.match to respect namespaces with slashes.Lance Stout
Required adding option to _fix_ns to not propagate namespaces to child elements.
2010-08-27Updated the suite of handler classes with documentation.Lance Stout
Updated XMLStream to return True or False from removeHandler to indicate if the handler existed and was removed. Waiter handlers now unregister themselves after timing out.
2010-08-27Fixed SleekTest compare method to check XML text.Lance Stout
Corrected resulting test failures. All pass again.
2010-08-27Added unit tests for StanzaBase.Lance Stout
2010-08-26Added unit test for _fix_ns for handling namespaces with forward slashes.Lance Stout
2010-08-26Finished the update of ElementBase with docs and unit tests.Lance Stout
Corrected bugs in equality comparisons between stanzas.
2010-08-25Fixed ElementBase.match to respect namespaces.Lance Stout
2010-08-25Updated ElementBase.match and added unit tests.Lance Stout
2010-08-25Updated ElementBase._delSub and added unit tests.Lance Stout
_delSub can now accept a path and will optionally remove any empty parent elements after deleting the target elements.
2010-08-24Updated ElementBase._setSubText and added unit tests.Lance Stout
_setSubText can now handle elements specified by an XPath expression, and will build up the element tree as needed, reusing an existing elements in the path.