summaryrefslogtreecommitdiff
path: root/slixmpp/test/slixtest.py
diff options
context:
space:
mode:
Diffstat (limited to 'slixmpp/test/slixtest.py')
-rw-r--r--slixmpp/test/slixtest.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/slixmpp/test/slixtest.py b/slixmpp/test/slixtest.py
index 3953d77d..802df73c 100644
--- a/slixmpp/test/slixtest.py
+++ b/slixmpp/test/slixtest.py
@@ -340,6 +340,13 @@ class SlixTest(unittest.TestCase):
self.xmpp.default_lang = None
self.xmpp.peer_default_lang = None
+ def new_id():
+ self.xmpp._id += 1
+ return str(self.xmpp._id)
+
+ self.xmpp._id = 0
+ self.xmpp.new_id = new_id
+
# Must have the stream header ready for xmpp.process() to work.
if not header:
header = self.xmpp.stream_header