From 8e9b3d0760f7cfbce0d480cb61050a9b78746f8c Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Fri, 13 May 2011 15:28:47 -0400 Subject: 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. --- tests/test_stanza_error.py | 5 +++++ 1 file changed, 5 insertions(+) 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() -- cgit v1.2.3