diff options
author | Lance Stout <lancestout@gmail.com> | 2010-07-19 13:58:53 -0400 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2010-07-19 13:58:53 -0400 |
commit | d5e42ac0e7282500583bf17f21eb2f944600ce76 (patch) | |
tree | 28decf6b57e7072748f59c05d84de0f1fdf4101d /tests/test_chatstates.py | |
parent | e6bec8681e07ced607db1fbcbc5e356c3936f1d1 (diff) | |
download | slixmpp-d5e42ac0e7282500583bf17f21eb2f944600ce76.tar.gz slixmpp-d5e42ac0e7282500583bf17f21eb2f944600ce76.tar.bz2 slixmpp-d5e42ac0e7282500583bf17f21eb2f944600ce76.tar.xz slixmpp-d5e42ac0e7282500583bf17f21eb2f944600ce76.zip |
Condensed all of the stanzaPlugin functions into a single registerStanzaPlugin function.
Updated plugins and tests to use new function.
Diffstat (limited to 'tests/test_chatstates.py')
-rw-r--r-- | tests/test_chatstates.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_chatstates.py b/tests/test_chatstates.py index 1e585be4..bcacb9e5 100644 --- a/tests/test_chatstates.py +++ b/tests/test_chatstates.py @@ -4,11 +4,11 @@ import sleekxmpp.plugins.xep_0085 as xep_0085 class TestChatStates(SleekTest): def setUp(self): - self.stanzaPlugin(Message, xep_0085.Active) - self.stanzaPlugin(Message, xep_0085.Composing) - self.stanzaPlugin(Message, xep_0085.Gone) - self.stanzaPlugin(Message, xep_0085.Inactive) - self.stanzaPlugin(Message, xep_0085.Paused) + registerStanzaPlugin(Message, xep_0085.Active) + registerStanzaPlugin(Message, xep_0085.Composing) + registerStanzaPlugin(Message, xep_0085.Gone) + registerStanzaPlugin(Message, xep_0085.Inactive) + registerStanzaPlugin(Message, xep_0085.Paused) def testCreateChatState(self): """Testing creating chat states.""" |