diff options
Diffstat (limited to 'tests/test_stanza_element.py')
-rw-r--r-- | tests/test_stanza_element.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/test_stanza_element.py b/tests/test_stanza_element.py index e678b56e..0c49f201 100644 --- a/tests/test_stanza_element.py +++ b/tests/test_stanza_element.py @@ -1,10 +1,10 @@ import unittest -from sleekxmpp.test import SleekTest -from sleekxmpp.xmlstream.stanzabase import ElementBase, register_stanza_plugin, ET -from sleekxmpp.thirdparty import OrderedDict +from slixmpp.test import SlixTest +from slixmpp.xmlstream.stanzabase import ElementBase, register_stanza_plugin, ET +from collections import OrderedDict -class TestElementBase(SleekTest): +class TestElementBase(SlixTest): def testFixNs(self): """Test fixing namespaces in an XPath expression.""" @@ -38,7 +38,7 @@ class TestElementBase(SleekTest): """) def testGetStanzaValues(self): - """Test getStanzaValues using plugins and substanzas.""" + """Test get_stanza_values using plugins and substanzas.""" class TestStanzaPlugin(ElementBase): name = "foo2" @@ -65,7 +65,7 @@ class TestElementBase(SleekTest): substanza['bar'] = 'c' stanza.append(substanza) - values = stanza.getStanzaValues() + values = stanza.get_stanza_values() expected = {'lang': '', 'bar': 'a', 'baz': '', @@ -85,7 +85,7 @@ class TestElementBase(SleekTest): def testSetStanzaValues(self): - """Test using setStanzaValues with substanzas and plugins.""" + """Test using set_stanza_values with substanzas and plugins.""" class TestStanzaPlugin(ElementBase): name = "pluginfoo" @@ -157,10 +157,10 @@ class TestElementBase(SleekTest): stanza = TestStanza() substanza = TestStanza() stanza.append(substanza) - stanza.setStanzaValues({'bar': 'a', - 'baz': 'b', - 'qux': 42, - 'foobar': {'fizz': 'c'}}) + stanza.set_stanza_values({'bar': 'a', + 'baz': 'b', + 'qux': 42, + 'foobar': {'fizz': 'c'}}) # Test non-plugin interfaces expected = {'substanzas': [substanza], |