diff options
author | Lance Stout <lancestout@gmail.com> | 2011-05-13 15:28:47 -0400 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2011-05-13 15:28:47 -0400 |
commit | 8e9b3d0760f7cfbce0d480cb61050a9b78746f8c (patch) | |
tree | 7d4ce8b669188c0f8ee46ac7f47f4864fafb5d52 /tests/test_stanza_error.py | |
parent | 5399fdd3a95377bfb5bba993f299664557cabb7c (diff) | |
download | slixmpp-8e9b3d0760f7cfbce0d480cb61050a9b78746f8c.tar.gz slixmpp-8e9b3d0760f7cfbce0d480cb61050a9b78746f8c.tar.bz2 slixmpp-8e9b3d0760f7cfbce0d480cb61050a9b78746f8c.tar.xz slixmpp-8e9b3d0760f7cfbce0d480cb61050a9b78746f8c.zip |
Ensure that the XEP-0086 plugin is loaded.
Since the XEP-0086 plugin auto adds error code values,
it must be reliably loaded or unloaded when certain tests
are run so that stanzas may be matched. In this case, we
ensure that the plugin is used.
Diffstat (limited to 'tests/test_stanza_error.py')
-rw-r--r-- | tests/test_stanza_error.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_stanza_error.py b/tests/test_stanza_error.py index 5eecfee9..a41bf4bf 100644 --- a/tests/test_stanza_error.py +++ b/tests/test_stanza_error.py @@ -3,6 +3,11 @@ from sleekxmpp.test import * class TestErrorStanzas(SleekTest): + def setUp(self): + # Ensure that the XEP-0086 plugin has been loaded. + self.stream_start() + self.stream_close() + def testSetup(self): """Test setting initial values in error stanza.""" msg = self.Message() |