summaryrefslogtreecommitdiff
path: root/tests/test_stream_xep_0060.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-09-01 13:36:11 -0700
committerLance Stout <lancestout@gmail.com>2011-09-01 13:36:11 -0700
commit7e5e9542e9873a251986bedfe274904e629920d0 (patch)
tree42e1ccf02383d5ea60591c26634b3d2e7d087e9f /tests/test_stream_xep_0060.py
parentd7fc2aaa9cd8427f73c78f1e6bfbc1c9e1569cf6 (diff)
downloadslixmpp-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/test_stream_xep_0060.py')
-rw-r--r--tests/test_stream_xep_0060.py18
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">