Lance Stout
1da3e5b35e
Added unit tests for error stanzas. Corrected error in deleting conditions.
2010-07-29 23:55:13 -04:00
Lance Stout
a96a046e27
Remove extra debugging lines and speed up stream testing in SleekTest.
2010-07-29 23:15:49 -04:00
Lance Stout
aad185fe29
Update test to reflect change in reply() method that removes the from attribute.
2010-07-26 21:38:23 -04:00
Nathan Fritz
2cb82afc2c
updated and moved jid class -- jids now have setters
2010-07-26 18:13:09 -07:00
Lance Stout
5c9b47afbd
Update test_events to use SleekTest to make everything consistent.
2010-07-20 12:22:25 -04:00
Lance Stout
7ad0143687
Updated pubsub stanzas to use xep_0004 stanza objects, and updated tests to match.
2010-07-20 12:18:38 -04:00
Lance Stout
de24e9ed45
Lots of XEP-0004 bug fixes.
...
Forms have default type of 'form'
setFields now uses a list of tuples instead of a dictionary because ordering is important.
getFields defaults to returning a list of tuples, but the use_dict parameter can change that
2010-07-20 12:16:57 -04:00
Lance Stout
690eaf8d3c
Updated license notices to use the correct MIT format. Also corrected references to nonexistant license.txt to LICENSE.
2010-07-20 11:19:49 -04:00
Lance Stout
f505e229d6
Updated message stanza tests.
2010-07-20 01:56:18 -04:00
Lance Stout
bb927c7e6a
Updated presence stanza to include a 'show' interface. Presence stanza tests updated accordingly.
2010-07-20 00:04:34 -04:00
Lance Stout
14f1c3ba51
Updated SleekTest to implement the checkPresence method.
...
Also, removed unnecessary TestStream class and shortened timeout during stream connection.
2010-07-19 23:58:33 -04:00
Nathan Fritz
85ee30539d
more set/get Values changes
2010-07-19 16:26:25 -07:00
Nathan Fritz
f74baf1c23
updated sleektest to use new stanza get/set values api
2010-07-19 16:25:01 -07:00
Lance Stout
d5e42ac0e7
Condensed all of the stanzaPlugin functions into a single registerStanzaPlugin function.
...
Updated plugins and tests to use new function.
2010-07-19 13:58:53 -04:00
Lance Stout
35212c7991
Updated SleekTest to be able to simulate and test interactions with an XML stream.
2010-07-14 15:32:14 -04:00
Lance Stout
48f0843ace
Added initial stanza object version of the xep_0004 plugin. Items/reported elements still need to be unit tested
2010-07-14 11:59:58 -04:00
Lance Stout
b1c997be1d
Reworked the Gmail notification plugin to use stanza objects and expose more information.
2010-07-11 22:01:51 -04:00
Lance Stout
7f8179d91e
Refactored unit tests for XEP-0030, XEP-0033, and XEP-0085 to use the new SleekTest class.
2010-06-27 17:47:32 -04:00
Lance Stout
5c76d969f7
Added a new SleekTest class that provides useful methods for test cases.
...
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.
2010-06-27 17:33:43 -04:00
Lance Stout
646a609c0b
Added plugin and tests for XEP-0033, Extended Stanza Addresses.
...
XEP-0033 can be useful for interacting with XMPP<->Email gateways.
2010-06-22 23:22:50 -04:00
Lance stout
109af1b1b6
Merge branch 'xep_0085' into develop
2010-05-31 13:31:11 -04:00
Lance stout
629f6e76a9
Added implementation and tests for XEP-0085 - Chat State Notifications.
...
Chat states may be set using:
msg['chat_state'].active()
msg['chat_state'].composing()
msg['chat_state'].gone()
msg['chat_state'].inactive()
msg['chat_state'].paused()
Checking a chat state can be done with either:
msg['chat_state'].getState()
msg['chat_state'].name
When a message with a chat state is receieved, the following events
may occur:
chatstate_active
chatstate_composing
chatstate_gone
chatstate_inactive
chatstate_paused
where the event data is the message stanza. Note that currently these
events are also triggered for messages sent by SleekXMPP, not just those
received.
2010-05-31 13:24:14 -04:00
Lance Stout
9fee87c258
Added unit tests for the new XEP-0030 stanza objects. All pass.
...
(cherry picked from commit e1b814f27bf160f20bb30c315ca30769d217482d)
2010-05-31 05:30:47 +08:00
Nathan Fritz
3a28f9e5d2
added pubsub state stanzas and scheduled events
2010-05-27 04:58:57 -07:00
Nathan Fritz
fa92bc866b
fixed dns unicode problem
2010-05-26 11:37:01 -07:00
Nathan Fritz
feaa7539af
added test_events and testing new del_event_handler
2010-05-20 13:09:04 -07:00
Nathan Fritz
ae41c08fec
added test for unsolicided unavailable presence and fixed bug to make it pass
2010-05-12 18:07:20 -07:00
Nathan Fritz
e2f841146a
forgot to add file required to pass testall.py
2010-04-22 23:40:50 -07:00
Nathan Fritz
37b571c55a
added pubsub#event stanzas, multi-subtypes iterable stanzas, pubsub#event test coverage
2010-04-21 23:51:37 -07:00
Nathan Fritz
212660091f
added pubsub tests and fixed match on iterator error
2010-04-19 01:03:27 -07:00
Nathan Fritz
80e7e0d0ee
adding tests, fixed stanzapath matching to match keys, fixed pubsub#owner stanzas
2010-04-14 01:23:17 -07:00
Nathan Fritz
2384858f5e
fixed html-im stanza plugin
2010-04-07 23:56:44 -07:00
Nathan Fritz
dd77d2165d
added missing docstrings to tests and added deprecated warning to basexmpp.send when using xml mask waiting
2010-04-07 23:32:15 -07:00
Nathan Fritz
0659ddeff0
added memleak test and attempted to fix presence leak
2010-03-26 13:27:13 -07:00
Nathan Fritz
23b9930c44
added separate tostring files
2010-01-29 02:11:45 -08:00
Nathan Fritz
e39a2395d7
xep 30 and 50 always reply from jid iq sent to
2010-01-15 21:07:28 -08:00
Nathan Fritz
6e1aa0690f
Completed basic test coverage of xmlns http://jabber.org/protocol/pubsub stanzas
2010-01-13 09:04:05 -08:00
Nathan Fritz
da56bef90b
* tests need module file
2010-01-08 07:07:43 +00:00
Nathan Fritz
218c7318e0
* added tests
2010-01-08 07:01:19 +00:00
Nathan Fritz
0af468b435
* fixed stanza.keys()
2010-01-08 05:26:37 +00:00
Nathan Fritz
8e3168e145
* added first stanza tests
...
* added stanza.keys()
* stanza.getValues() now return substanzas and plugins
* stanza.setValues() now can read substanzas and plugins
* stanzas can now be iterable if stanza.subitem is set to a class
2010-01-08 01:45:11 +00:00