summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
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.
2010-08-24Updated ElementBase._getSubText and added unit tests.Lance Stout
Also added ElementBase._fix_ns() to apply the stanza namespace to elements that don't have a namespace.
2010-08-22fixed a but in stanza_pubsubfritzy
2010-08-19Updated ElementBase methods _getAttr, _setAttr, and _delAttr with docs and ↵Lance Stout
tests.
2010-08-19Updated ElementBase.__delitem__ and added unit tests.Lance Stout
2010-08-19Updated ElementBase.__setitem__ and added unit tests.Lance Stout
2010-08-13Updated ElementBase.__getitem__ with docs and unit tests.Lance Stout
2010-08-13Updated getStanzaValues and setStanzaValues with docs and unit tests.Lance Stout
2010-08-13Updated ElementBase.setup, and added unit tests.Lance Stout
2010-08-13Added a generic checkStanza method to SleekTest. Updated the other check ↵Lance Stout
methods to use it.
2010-08-12Removed unused xmlcompare.py.Lance Stout
2010-08-12Updated SleekTest with docs and PEP8 style.Lance Stout
2010-08-11Updated roster stanza with docs and PEP8 style.Lance Stout
2010-08-11Updated SleekTest.streamClose to check that the stream was actually started ↵Lance Stout
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.
2010-08-06Updated SleekTest to use the new tostring function instead of ET.tostringLance Stout
2010-08-05Add unit tests for the tostring function.Lance Stout
2010-08-05Updated tests to use a relative import for SleekTest to please Python3.Lance Stout
Fixed some tabs/spaces issues.
2010-08-03Update nick stanza with documentation and PEP8 style.Lance Stout
2010-08-03Fix whitespace issues, and make some debugging statements clearer.Lance Stout
2010-08-03Updated XHTML-IM stanza with documentation and PEP8 style.Lance Stout
2010-08-03Updated presence stanza with documentation and PEP8 style.Lance Stout
2010-08-03Updated message stanzas and tests with documentation and PEP8 style.Lance Stout
2010-07-29Updated, cleaned, and documented Iq stanza class. Also added unit tests.Lance Stout
2010-07-29Added unit tests for error stanzas. Corrected error in deleting conditions.Lance Stout
2010-07-29Remove extra debugging lines and speed up stream testing in SleekTest.Lance Stout
2010-07-26Update test to reflect change in reply() method that removes the from attribute.Lance Stout
2010-07-26updated and moved jid class -- jids now have settersNathan Fritz
2010-07-20Update test_events to use SleekTest to make everything consistent.Lance Stout
2010-07-20Updated pubsub stanzas to use xep_0004 stanza objects, and updated tests to ↵Lance Stout
match.
2010-07-20Lots of XEP-0004 bug fixes.Lance Stout
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-20Updated license notices to use the correct MIT format. Also corrected ↵Lance Stout
references to nonexistant license.txt to LICENSE.
2010-07-20Updated message stanza tests.Lance Stout
2010-07-20Updated presence stanza to include a 'show' interface. Presence stanza tests ↵Lance Stout
updated accordingly.
2010-07-19Updated SleekTest to implement the checkPresence method.Lance Stout
Also, removed unnecessary TestStream class and shortened timeout during stream connection.
2010-07-19more set/get Values changesNathan Fritz
2010-07-19updated sleektest to use new stanza get/set values apiNathan Fritz
2010-07-19Condensed all of the stanzaPlugin functions into a single ↵Lance Stout
registerStanzaPlugin function. Updated plugins and tests to use new function.
2010-07-14Updated SleekTest to be able to simulate and test interactions with an XML ↵Lance Stout
stream.
2010-07-14Added initial stanza object version of the xep_0004 plugin. Items/reported ↵Lance Stout
elements still need to be unit tested
2010-07-11Reworked the Gmail notification plugin to use stanza objects and expose more ↵Lance Stout
information.
2010-06-27Refactored unit tests for XEP-0030, XEP-0033, and XEP-0085 to use the new ↵Lance Stout
SleekTest class.
2010-06-27Added a new SleekTest class that provides useful methods for test cases.Lance Stout
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-22Added plugin and tests for XEP-0033, Extended Stanza Addresses.Lance Stout
XEP-0033 can be useful for interacting with XMPP<->Email gateways.
2010-05-31Merge branch 'xep_0085' into developLance stout
2010-05-31Added implementation and tests for XEP-0085 - Chat State Notifications.Lance stout
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.