SleekXMPP/tests
Lance Stout 9f1648328f Resolve timeout errors for get_roster.
See issue #89

Using get_roster will now return the same types of values as
Iq.send. If a timeout occurs, then the event 'roster_timeout'
will be fired. A successful call to get_roster will also
raise the 'roster_received' event.

To ensure that the get_roster call was successful, here
is a pattern to follow:

    def __init__(self, ...):
        ...
        self.add_event_handler('session_start', self.session_start)
        self.add_event_handler('roster_timeout', self.roster_timeout)
        self.add_event_handler('roster_received', self.roster_received)

    def session_start(self, e):
        self.send_presence()
        self.get_roster()

    def roster_timeout(self, e):
        # Optionally increase the timeout period
        self.get_roster(timeout=self.response_timeout * 2)

    def roster_received(self, iq):
        # Do stuff, roster has been initialized.
        ...
2011-05-20 12:56:00 -04:00
..
__init__.py Corrected test errors. 2010-10-07 19:42:28 -04:00
live_multiple_streams.py Fixed some live stream test errors. 2010-11-17 15:45:16 -05:00
live_test.py Fixed some live stream test errors. 2010-11-17 15:45:16 -05:00
test_events.py Unit test reorganization. 2010-10-07 10:58:13 -04:00
test_jid.py Simplified SleekTest. 2010-11-05 21:18:48 -04:00
test_stanza_base.py Unit test reorganization. 2010-10-07 10:58:13 -04:00
test_stanza_element.py Allow a stanza plugin to override a parent's interfaces. 2011-03-24 12:25:17 -04:00
test_stanza_error.py Ensure that the XEP-0086 plugin is loaded. 2011-05-13 15:28:47 -04:00
test_stanza_gmail.py Simplified SleekTest. 2010-11-05 21:18:48 -04:00
test_stanza_iq.py Simplified SleekTest. 2010-11-05 21:18:48 -04:00
test_stanza_message.py Fix tests for Nick stanza. 2011-01-19 19:03:02 -05:00
test_stanza_presence.py Fix tests for Nick stanza. 2011-01-19 19:03:02 -05:00
test_stanza_roster.py Simplified SleekTest. 2010-11-05 21:18:48 -04:00
test_stanza_xep_0004.py Simplified SleekTest. 2010-11-05 21:18:48 -04:00
test_stanza_xep_0009.py Fixed failing tests from new XEP-0009 plugin 2011-02-07 10:18:15 -05:00
test_stanza_xep_0030.py First pass at a new XEP-0030 plugin. 2010-12-09 18:57:27 -05:00
test_stanza_xep_0033.py Simplified SleekTest. 2010-11-05 21:18:48 -04:00
test_stanza_xep_0050.py Added new XEP-0050 implementation. 2011-03-24 09:35:36 -04:00
test_stanza_xep_0059.py Added new XEP-0059 plugin. 2011-01-08 10:58:47 -05:00
test_stanza_xep_0060.py Update XEP-0060 test. 2011-02-08 21:09:49 -05:00
test_stanza_xep_0085.py Updated the XEP-0085 plugin. 2011-02-24 12:10:29 -05:00
test_stream.py Simplified SleekTest. 2010-11-05 21:18:48 -04:00
test_stream_exceptions.py Added new implementation for XEP-0086. 2011-03-24 13:14:26 -04:00
test_stream_handlers.py Added option for iq.send to accept a callhandler. 2010-12-07 17:19:39 -05:00
test_stream_presence.py Simplified SleekTest. 2010-11-05 21:18:48 -04:00
test_stream_roster.py Resolve timeout errors for get_roster. 2011-05-20 12:56:00 -04:00
test_stream_xep_0030.py Add support for XEP-0059 to XEP-0030 plugin. 2011-01-08 11:19:31 -05:00
test_stream_xep_0050.py Added new XEP-0050 implementation. 2011-03-24 09:35:36 -04:00
test_stream_xep_0059.py Added new XEP-0059 plugin. 2011-01-08 10:58:47 -05:00
test_stream_xep_0085.py Add tests for XEP-0085, fix some bugs. 2011-02-24 14:15:02 -05:00
test_stream_xep_0092.py Update the XEP-0092 plugin to the new style. 2011-01-08 22:38:13 -05:00
test_stream_xep_0128.py Updated XEP-0128 plugin to work with the new XEP-0030 plugin. 2011-03-22 20:42:43 -04:00
test_stream_xep_0249.py Cleaned XEP-0249 plugin, added tests. 2011-03-23 10:00:32 -04:00
test_tostring.py Fix xml:lang tostring test. 2010-12-08 00:18:04 -05:00