summaryrefslogtreecommitdiff
path: root/sleekxmpp/test/livesocket.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-05-31 11:05:54 -0700
committerLance Stout <lancestout@gmail.com>2011-05-31 11:05:54 -0700
commit83a73ac9b751f6403a43cb341460a46171e0908b (patch)
treec60877a9c6896bbefe8fcb51b606a20abac165ee /sleekxmpp/test/livesocket.py
parentccb0eeefbd58361283e4e92d75e5d17aa76c70c7 (diff)
parenta81162edd2434756e21d7f9a79d71d770a43db7b (diff)
downloadslixmpp-83a73ac9b751f6403a43cb341460a46171e0908b.tar.gz
slixmpp-83a73ac9b751f6403a43cb341460a46171e0908b.tar.bz2
slixmpp-83a73ac9b751f6403a43cb341460a46171e0908b.tar.xz
slixmpp-83a73ac9b751f6403a43cb341460a46171e0908b.zip
Merge branch 'develop' into stream_features
Conflicts: sleekxmpp/clientxmpp.py
Diffstat (limited to 'sleekxmpp/test/livesocket.py')
-rw-r--r--sleekxmpp/test/livesocket.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/sleekxmpp/test/livesocket.py b/sleekxmpp/test/livesocket.py
index 3e0f2135..7dd4693c 100644
--- a/sleekxmpp/test/livesocket.py
+++ b/sleekxmpp/test/livesocket.py
@@ -58,6 +58,18 @@ class TestLiveSocket(object):
# ------------------------------------------------------------------
# Testing Interface
+ def disconnect_errror(self):
+ """
+ Used to simulate a socket disconnection error.
+
+ Not used by live sockets.
+ """
+ try:
+ self.socket.shutdown()
+ self.socket.close()
+ except:
+ pass
+
def next_sent(self, timeout=None):
"""
Get the next stanza that has been sent.