summaryrefslogtreecommitdiff
path: root/tests/test_stanza_xep_0085.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-02-19 20:28:31 -0800
committerLance Stout <lancestout@gmail.com>2012-02-19 20:28:31 -0800
commite3d596c9fa1a8c138df0ebd97e90c6d510b77929 (patch)
tree9b97923bb42b3fe1552941aa714b62a34d3e3e2c /tests/test_stanza_xep_0085.py
parentecd6ad69303466029e6498f9927964d9ee9e631b (diff)
downloadslixmpp-e3d596c9fa1a8c138df0ebd97e90c6d510b77929.tar.gz
slixmpp-e3d596c9fa1a8c138df0ebd97e90c6d510b77929.tar.bz2
slixmpp-e3d596c9fa1a8c138df0ebd97e90c6d510b77929.tar.xz
slixmpp-e3d596c9fa1a8c138df0ebd97e90c6d510b77929.zip
Update XEP-0085 plugin to work with both ElementTree and cElementTree
Each state element must have its own stanza class now. A stanza class with an empty name field causes errors in ElementTree, even though it works fine with cElementTree.
Diffstat (limited to 'tests/test_stanza_xep_0085.py')
-rw-r--r--tests/test_stanza_xep_0085.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_stanza_xep_0085.py b/tests/test_stanza_xep_0085.py
index b08404e2..61784e47 100644
--- a/tests/test_stanza_xep_0085.py
+++ b/tests/test_stanza_xep_0085.py
@@ -4,7 +4,11 @@ import sleekxmpp.plugins.xep_0085 as xep_0085
class TestChatStates(SleekTest):
def setUp(self):
- register_stanza_plugin(Message, xep_0085.ChatState)
+ register_stanza_plugin(Message, xep_0085.stanza.Active)
+ register_stanza_plugin(Message, xep_0085.stanza.Composing)
+ register_stanza_plugin(Message, xep_0085.stanza.Gone)
+ register_stanza_plugin(Message, xep_0085.stanza.Inactive)
+ register_stanza_plugin(Message, xep_0085.stanza.Paused)
def testCreateChatState(self):
"""Testing creating chat states."""