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.
This commit is contained in:
Lance Stout 2011-05-13 15:28:47 -04:00
parent 5399fdd3a9
commit 8e9b3d0760

View file

@ -3,6 +3,11 @@ from sleekxmpp.test import *
class TestErrorStanzas(SleekTest): class TestErrorStanzas(SleekTest):
def setUp(self):
# Ensure that the XEP-0086 plugin has been loaded.
self.stream_start()
self.stream_close()
def testSetup(self): def testSetup(self):
"""Test setting initial values in error stanza.""" """Test setting initial values in error stanza."""
msg = self.Message() msg = self.Message()