diff options
author | mathieui <mathieui@mathieui.net> | 2021-02-19 18:51:50 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2021-02-19 19:03:46 +0100 |
commit | a397cc3a7d824d7c5bdfbe316b78deb17e190ecd (patch) | |
tree | d18c9e4bccc85d3c5770515966ce9866f8bc39dc /tests/test_stanza_xep_0060.py | |
parent | 626bf5ff8ac5bc4c8758cd437e52f4e7c86ec179 (diff) | |
download | slixmpp-a397cc3a7d824d7c5bdfbe316b78deb17e190ecd.tar.gz slixmpp-a397cc3a7d824d7c5bdfbe316b78deb17e190ecd.tar.bz2 slixmpp-a397cc3a7d824d7c5bdfbe316b78deb17e190ecd.tar.xz slixmpp-a397cc3a7d824d7c5bdfbe316b78deb17e190ecd.zip |
tests: fix prerequisites for stanza tests
Diffstat (limited to 'tests/test_stanza_xep_0060.py')
-rw-r--r-- | tests/test_stanza_xep_0060.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_stanza_xep_0060.py b/tests/test_stanza_xep_0060.py index 2a5f7d84..d05bc3d0 100644 --- a/tests/test_stanza_xep_0060.py +++ b/tests/test_stanza_xep_0060.py @@ -3,10 +3,19 @@ from slixmpp.test import SlixTest import slixmpp.plugins.xep_0004 as xep_0004 import slixmpp.plugins.xep_0060.stanza as pubsub from slixmpp.xmlstream.stanzabase import ET +from slixmpp.xmlstream import register_stanza_plugin class TestPubsubStanzas(SlixTest): + def setUp(self): + register_stanza_plugin( + xep_0004.FormField, xep_0004.FieldOption, iterable=True + ) + register_stanza_plugin( + xep_0004.Form, xep_0004.FormField, iterable=True + ) + def testAffiliations(self): "Testing iq/pubsub/affiliations/affiliation stanzas" iq = self.Iq() |