diff options
author | Lance Stout <lancestout@gmail.com> | 2011-09-01 13:36:11 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2011-09-01 13:36:11 -0700 |
commit | 7e5e9542e9873a251986bedfe274904e629920d0 (patch) | |
tree | 42e1ccf02383d5ea60591c26634b3d2e7d087e9f /tests | |
parent | d7fc2aaa9cd8427f73c78f1e6bfbc1c9e1569cf6 (diff) | |
download | slixmpp-7e5e9542e9873a251986bedfe274904e629920d0.tar.gz slixmpp-7e5e9542e9873a251986bedfe274904e629920d0.tar.bz2 slixmpp-7e5e9542e9873a251986bedfe274904e629920d0.tar.xz slixmpp-7e5e9542e9873a251986bedfe274904e629920d0.zip |
Add support for notify attribute when retracting an item.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_stream_xep_0060.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/test_stream_xep_0060.py b/tests/test_stream_xep_0060.py index 51a80c10..e0936660 100644 --- a/tests/test_stream_xep_0060.py +++ b/tests/test_stream_xep_0060.py @@ -484,6 +484,24 @@ class TestStreamPubsub(SleekTest): 'pubsub.example.com', 'somenode', 'ID1', + notify=True, + block=False) + self.send(""" + <iq type="set" id="1" to="pubsub.example.com"> + <pubsub xmlns="http://jabber.org/protocol/pubsub"> + <retract node="somenode" notify="true"> + <item id="ID1" /> + </retract> + </pubsub> + </iq> + """) + + def testRetract(self): + """Test deleting an item.""" + self.xmpp['xep_0060'].retract( + 'pubsub.example.com', + 'somenode', + 'ID1', block=False) self.send(""" <iq type="set" id="1" to="pubsub.example.com"> |